fmu-manipulation-toolbox 1.8.4__tar.gz → 1.8.4.1rc1__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.
Files changed (61) hide show
  1. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/PKG-INFO +1 -1
  2. fmu_manipulation_toolbox-1.8.4.1rc1/fmu_manipulation_toolbox/__version__.py +1 -0
  3. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/fmu_container.py +4 -4
  4. fmu_manipulation_toolbox-1.8.4.1rc1/fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
  5. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/win32/client_sm.dll +0 -0
  6. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/win32/server_sm.exe +0 -0
  7. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/win64/client_sm.dll +0 -0
  8. fmu_manipulation_toolbox-1.8.4.1rc1/fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
  9. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/win64/server_sm.exe +0 -0
  10. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox.egg-info/PKG-INFO +1 -1
  11. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/tests/test_suite.py +8 -0
  12. fmu_manipulation_toolbox-1.8.4/fmu_manipulation_toolbox/__version__.py +0 -1
  13. fmu_manipulation_toolbox-1.8.4/fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
  14. fmu_manipulation_toolbox-1.8.4/fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
  15. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/LICENSE.txt +0 -0
  16. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/README.md +0 -0
  17. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/__init__.py +0 -0
  18. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/__main__.py +0 -0
  19. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/assembly.py +0 -0
  20. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/checker.py +0 -0
  21. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/cli.py +0 -0
  22. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/fmu_operations.py +0 -0
  23. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/gui.py +0 -0
  24. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/gui_style.py +0 -0
  25. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/help.py +0 -0
  26. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/checkbox-checked-disabled.png +0 -0
  27. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/checkbox-checked-hover.png +0 -0
  28. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/checkbox-checked.png +0 -0
  29. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/checkbox-unchecked-disabled.png +0 -0
  30. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/checkbox-unchecked-hover.png +0 -0
  31. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/checkbox-unchecked.png +0 -0
  32. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/container.png +0 -0
  33. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/drop_fmu.png +0 -0
  34. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Annotation.xsd +0 -0
  35. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2AttributeGroups.xsd +0 -0
  36. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2ModelDescription.xsd +0 -0
  37. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2ScalarVariable.xsd +0 -0
  38. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Type.xsd +0 -0
  39. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Unit.xsd +0 -0
  40. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmi-2.0/fmi2VariableDependency.xsd +0 -0
  41. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmu.png +0 -0
  42. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/fmu_manipulation_toolbox.png +0 -0
  43. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/help.png +0 -0
  44. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/icon-round.png +0 -0
  45. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/icon.png +0 -0
  46. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/icon_fmu.png +0 -0
  47. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/license.txt +0 -0
  48. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/linux32/client_sm.so +0 -0
  49. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/linux32/server_sm +0 -0
  50. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/linux64/client_sm.so +0 -0
  51. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/linux64/server_sm +0 -0
  52. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/mask.png +0 -0
  53. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/resources/model.png +0 -0
  54. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox/version.py +0 -0
  55. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox.egg-info/SOURCES.txt +0 -0
  56. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox.egg-info/dependency_links.txt +0 -0
  57. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox.egg-info/entry_points.txt +0 -0
  58. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox.egg-info/requires.txt +0 -0
  59. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/fmu_manipulation_toolbox.egg-info/top_level.txt +0 -0
  60. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/setup.cfg +0 -0
  61. {fmu_manipulation_toolbox-1.8.4 → fmu_manipulation_toolbox-1.8.4.1rc1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu_manipulation_toolbox
3
- Version: 1.8.4
3
+ Version: 1.8.4.1rc1
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
@@ -146,7 +146,7 @@ class ContainerPort:
146
146
  return f"Port {self.fmu.name}/{self.port.name}"
147
147
 
148
148
  def __hash__(self):
149
- return hash(f"{self}")
149
+ return hash(str(self))
150
150
 
151
151
  def __eq__(self, other):
152
152
  return str(self) == str(other)
@@ -266,7 +266,7 @@ class FMUContainer:
266
266
 
267
267
  try:
268
268
  fmu = EmbeddedFMU(self.fmu_directory / fmu_filename)
269
- self.involved_fmu[fmu_filename] = fmu
269
+ self.involved_fmu[fmu.name] = fmu
270
270
  self.execution_order.append(fmu)
271
271
  if not fmu.fmi_version == "2.0":
272
272
  raise FMUContainerError("Only FMI-2.0 is supported by FMUContainer")
@@ -727,9 +727,9 @@ class FMUContainer:
727
727
  binary_directory.mkdir(exist_ok=True)
728
728
  shutil.copy(library_filename, binary_directory / f"{self.identifier}.dll")
729
729
 
730
- for fmu in self.involved_fmu.values():
730
+ for i, fmu in enumerate(self.involved_fmu.values()):
731
731
  shutil.copytree(self.long_path(fmu.fmu.tmp_directory),
732
- self.long_path(resources_directory / fmu.name), dirs_exist_ok=True)
732
+ self.long_path(resources_directory / f"{i:02x}"), dirs_exist_ok=True)
733
733
  return resources_directory
734
734
 
735
735
  def make_fmu_package(self, base_directory: Path, fmu_filename: Path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu_manipulation_toolbox
3
- Version: 1.8.4
3
+ Version: 1.8.4.1rc1
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
@@ -77,6 +77,14 @@ class FMUManipulationToolboxTestSuite(unittest.TestCase):
77
77
  self.assert_identical_files("containers/arch/REF-flat-dump.json",
78
78
  "containers/arch/flat-dump.json")
79
79
 
80
+ def test_container_subdir_flat(self):
81
+ container = FMUContainer("sub.fmu", fmu_directory=Path("containers/arch"))
82
+ container.get_fmu("subdir/gain2.fmu")
83
+ container.get_fmu("integrate.fmu")
84
+ container.get_fmu("sine.fmu")
85
+ container.add_implicit_rule()
86
+ container.make_fmu("sub.fmu", step_size=0.5)
87
+
80
88
  def test_container_json_hierarchical(self):
81
89
  assembly = Assembly("hierarchical.json", fmu_directory=Path("containers/arch"))
82
90
  assembly.make_fmu(dump_json=True)