fmu-manipulation-toolbox 1.9rc0__tar.gz → 1.9rc1__tar.gz
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-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/PKG-INFO +1 -1
- fmu_manipulation_toolbox-1.9rc1/fmu_manipulation_toolbox/__version__.py +1 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/assembly.py +7 -5
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/container.py +355 -154
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/operations.py +129 -92
- fmu_manipulation_toolbox-1.9rc1/fmu_manipulation_toolbox/resources/darwin64/container.dylib +0 -0
- fmu_manipulation_toolbox-1.9rc1/fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/win32/client_sm.dll +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/win32/server_sm.exe +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/win64/client_sm.dll +0 -0
- fmu_manipulation_toolbox-1.9rc1/fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/win64/server_sm.exe +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/split.py +8 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox.egg-info/PKG-INFO +1 -1
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox.egg-info/SOURCES.txt +1 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/setup.py +1 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/tests/test_suite.py +8 -0
- fmu_manipulation_toolbox-1.9rc0/fmu_manipulation_toolbox/__version__.py +0 -1
- fmu_manipulation_toolbox-1.9rc0/fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
- fmu_manipulation_toolbox-1.9rc0/fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/LICENSE.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/README.md +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/__init__.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/__main__.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/checker.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/gui.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/gui_style.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/help.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/checkbox-checked-disabled.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/checkbox-checked-hover.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/checkbox-checked.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/checkbox-unchecked-disabled.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/checkbox-unchecked-hover.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/checkbox-unchecked.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/container.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/drop_fmu.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Annotation.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2AttributeGroups.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2ModelDescription.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2ScalarVariable.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Type.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Unit.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2VariableDependency.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Annotation.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3AttributeGroups.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3BuildDescription.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3InterfaceType.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3LayeredStandardManifest.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3ModelDescription.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Terminal.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3TerminalsAndIcons.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Type.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Unit.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Variable.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmi-3.0/fmi3VariableDependency.xsd +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmu.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/fmu_manipulation_toolbox.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/help.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/icon-round.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/icon.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/icon_fmu.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/license.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/linux32/client_sm.so +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/linux32/server_sm +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/linux64/client_sm.so +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/linux64/server_sm +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/mask.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/resources/model.png +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox/version.py +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox.egg-info/dependency_links.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox.egg-info/entry_points.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox.egg-info/requires.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/fmu_manipulation_toolbox.egg-info/top_level.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc0 → fmu_manipulation_toolbox-1.9rc1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fmu_manipulation_toolbox
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9rc1
|
|
4
4
|
Summary: FMU Manipulation Toolbox is a python application for modifying Functional Mock-up Units (FMUs) without recompilation or bundling them into FMU Containers
|
|
5
5
|
Home-page: https://github.com/grouperenault/fmu_manipulation_toolbox/
|
|
6
6
|
Author: Nicolas.LAURENT@Renault.com
|
|
@@ -0,0 +1 @@
|
|
|
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}'")
|