fmu-manipulation-toolbox 1.9rc0__py3-none-any.whl → 1.9rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fmu_manipulation_toolbox/__version__.py +1 -1
- fmu_manipulation_toolbox/assembly.py +7 -5
- fmu_manipulation_toolbox/container.py +355 -154
- fmu_manipulation_toolbox/operations.py +129 -92
- fmu_manipulation_toolbox/resources/darwin64/container.dylib +0 -0
- fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
- fmu_manipulation_toolbox/resources/win32/client_sm.dll +0 -0
- fmu_manipulation_toolbox/resources/win32/server_sm.exe +0 -0
- fmu_manipulation_toolbox/resources/win64/client_sm.dll +0 -0
- fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
- fmu_manipulation_toolbox/resources/win64/server_sm.exe +0 -0
- fmu_manipulation_toolbox/split.py +8 -0
- {fmu_manipulation_toolbox-1.9rc0.dist-info → fmu_manipulation_toolbox-1.9rc1.dist-info}/METADATA +1 -1
- {fmu_manipulation_toolbox-1.9rc0.dist-info → fmu_manipulation_toolbox-1.9rc1.dist-info}/RECORD +18 -17
- {fmu_manipulation_toolbox-1.9rc0.dist-info → fmu_manipulation_toolbox-1.9rc1.dist-info}/WHEEL +0 -0
- {fmu_manipulation_toolbox-1.9rc0.dist-info → fmu_manipulation_toolbox-1.9rc1.dist-info}/entry_points.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0.dist-info → fmu_manipulation_toolbox-1.9rc1.dist-info}/licenses/LICENSE.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0.dist-info → fmu_manipulation_toolbox-1.9rc1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
'V1.9-
|
|
1
|
+
'V1.9-pre1'
|
|
@@ -101,12 +101,13 @@ class AssemblyNode:
|
|
|
101
101
|
def add_start_value(self, fmu_filename: str, port_name: str, value: str):
|
|
102
102
|
self.start_values[Port(fmu_filename, port_name)] = value
|
|
103
103
|
|
|
104
|
-
def make_fmu(self, fmu_directory: Path, debug=False, description_pathname=None):
|
|
104
|
+
def make_fmu(self, fmu_directory: Path, debug=False, description_pathname=None, fmi_version=2):
|
|
105
105
|
for node in self.children.values():
|
|
106
106
|
node.make_fmu(fmu_directory, debug=debug)
|
|
107
107
|
|
|
108
108
|
identifier = str(Path(self.name).stem)
|
|
109
|
-
container = FMUContainer(identifier, fmu_directory, description_pathname=description_pathname
|
|
109
|
+
container = FMUContainer(identifier, fmu_directory, description_pathname=description_pathname,
|
|
110
|
+
fmi_version=fmi_version)
|
|
110
111
|
|
|
111
112
|
for fmu_name in self.fmu_names_list:
|
|
112
113
|
container.get_fmu(fmu_name)
|
|
@@ -241,7 +242,7 @@ class Assembly:
|
|
|
241
242
|
|
|
242
243
|
self.input_pathname = fmu_directory / self.filename
|
|
243
244
|
self.description_pathname = self.input_pathname # For inclusion in FMU
|
|
244
|
-
self.root = None
|
|
245
|
+
self.root: Optional[AssemblyNode] = None
|
|
245
246
|
self.read()
|
|
246
247
|
|
|
247
248
|
def add_transient_file(self, filename: str):
|
|
@@ -517,8 +518,9 @@ class Assembly:
|
|
|
517
518
|
self.root = sdd.parse(self.description_pathname)
|
|
518
519
|
self.root.name = str(self.filename.with_suffix(".fmu"))
|
|
519
520
|
|
|
520
|
-
def make_fmu(self, dump_json=False):
|
|
521
|
-
self.root.make_fmu(self.fmu_directory, debug=self.debug, description_pathname=self.description_pathname
|
|
521
|
+
def make_fmu(self, dump_json=False, fmi_version=2):
|
|
522
|
+
self.root.make_fmu(self.fmu_directory, debug=self.debug, description_pathname=self.description_pathname,
|
|
523
|
+
fmi_version=fmi_version)
|
|
522
524
|
if dump_json:
|
|
523
525
|
dump_file = Path(self.input_pathname.stem + "-dump").with_suffix(".json")
|
|
524
526
|
logger.info(f"Dump Json '{dump_file}'")
|