fmu-manipulation-toolbox 1.9rc5__py3-none-any.whl → 1.9rc7__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.
Files changed (21) hide show
  1. fmu_manipulation_toolbox/__version__.py +1 -1
  2. fmu_manipulation_toolbox/cli/fmutool.py +10 -1
  3. fmu_manipulation_toolbox/container.py +19 -16
  4. fmu_manipulation_toolbox/remoting.py +6 -4
  5. fmu_manipulation_toolbox/resources/darwin64/container.dylib +0 -0
  6. fmu_manipulation_toolbox/resources/linux32/client_sm.so +0 -0
  7. fmu_manipulation_toolbox/resources/linux32/server_sm +0 -0
  8. fmu_manipulation_toolbox/resources/linux64/client_sm.so +0 -0
  9. fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
  10. fmu_manipulation_toolbox/resources/linux64/server_sm +0 -0
  11. fmu_manipulation_toolbox/resources/win32/client_sm.dll +0 -0
  12. fmu_manipulation_toolbox/resources/win32/server_sm.exe +0 -0
  13. fmu_manipulation_toolbox/resources/win64/client_sm.dll +0 -0
  14. fmu_manipulation_toolbox/resources/win64/container.dll +0 -0
  15. fmu_manipulation_toolbox/resources/win64/server_sm.exe +0 -0
  16. {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/METADATA +1 -1
  17. {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/RECORD +21 -21
  18. {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/WHEEL +0 -0
  19. {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/entry_points.txt +0 -0
  20. {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/licenses/LICENSE.txt +0 -0
  21. {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- 'V1.9-rc5'
1
+ 'V1.9-rc7'
@@ -89,7 +89,16 @@ def fmutool():
89
89
  for causality in cli_options.apply_on:
90
90
  logger.info(f" - causality = {causality}")
91
91
 
92
- for operation in cli_options.operations_list:
92
+ # Checker operations are added as a list into operations_list
93
+ def operation_iterator():
94
+ for op in cli_options.operations_list:
95
+ if isinstance(op, list):
96
+ for sub_op in op:
97
+ yield sub_op
98
+ else:
99
+ yield op
100
+
101
+ for operation in operation_iterator():
93
102
  logger.info(f" => {operation}")
94
103
  try:
95
104
  fmu.apply_operation(operation, cli_options.apply_on)
@@ -796,23 +796,26 @@ class FMUContainer:
796
796
  def make_fmu_xml_epilog_2(self, xml_file, index_offset):
797
797
  xml_file.write(" </ModelVariables>\n"
798
798
  "\n"
799
- " <ModelStructure>\n"
800
- " <Outputs>\n")
799
+ " <ModelStructure>\n")
801
800
 
802
- index = index_offset
803
- for output in self.outputs.values():
804
- if output.port.type_name in EmbeddedFMUPort.CONTAINER_TO_FMI[2]:
805
- print(f' <Unknown index="{index}"/>', file=xml_file)
806
- index += 1
807
- xml_file.write(" </Outputs>\n"
808
- " <InitialUnknowns>\n")
809
- index = index_offset
810
- for output in self.outputs.values():
811
- if output.port.type_name in EmbeddedFMUPort.CONTAINER_TO_FMI[2]:
812
- print(f' <Unknown index="{index}"/>', file=xml_file)
813
- index += 1
814
- xml_file.write(" </InitialUnknowns>\n"
815
- " </ModelStructure>\n"
801
+
802
+ if self.outputs:
803
+ xml_file.write(" <Outputs>\n")
804
+ index = index_offset
805
+ for output in self.outputs.values():
806
+ if output.port.type_name in EmbeddedFMUPort.CONTAINER_TO_FMI[2]:
807
+ print(f' <Unknown index="{index}"/>', file=xml_file)
808
+ index += 1
809
+ xml_file.write(" </Outputs>\n"
810
+ " <InitialUnknowns>\n")
811
+ index = index_offset
812
+ for output in self.outputs.values():
813
+ if output.port.type_name in EmbeddedFMUPort.CONTAINER_TO_FMI[2]:
814
+ print(f' <Unknown index="{index}"/>', file=xml_file)
815
+ index += 1
816
+ xml_file.write(" </InitialUnknowns>\n")
817
+
818
+ xml_file.write(" </ModelStructure>\n"
816
819
  "\n"
817
820
  "</fmiModelDescription>")
818
821
 
@@ -19,8 +19,8 @@ class OperationAddRemotingWinAbstract(OperationAbstract):
19
19
  "Integer": [],
20
20
  "Boolean": []
21
21
  }
22
- self.nb_input = 0;
23
- self.nb_output = 0;
22
+ self.nb_input = 0
23
+ self.nb_output = 0
24
24
 
25
25
  def fmi_attrs(self, attrs):
26
26
  if not attrs["fmiVersion"] == "2.0":
@@ -60,9 +60,11 @@ class OperationAddRemotingWinAbstract(OperationAbstract):
60
60
  fmu_bin[self.bitness_to] / "license.txt")
61
61
 
62
62
  def port_attrs(self, fmu_port) -> int:
63
+ vr = int(fmu_port["valueReference"])
64
+ causality = fmu_port.get("causality", "local")
63
65
  try:
64
- self.vr[fmu_port.fmi_type].append(fmu_port["valueReference"])
65
- if fmu_port["causality"] in ("input", "parameter"):
66
+ self.vr[fmu_port.fmi_type].append(vr)
67
+ if causality in ("input", "parameter"):
66
68
  self.nb_input += 1
67
69
  else:
68
70
  self.nb_output += 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu_manipulation_toolbox
3
- Version: 1.9rc5
3
+ Version: 1.9rc7
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
@@ -1,20 +1,20 @@
1
1
  fmu_manipulation_toolbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  fmu_manipulation_toolbox/__main__.py,sha256=FpG0ITBz5q-AvIbXplVh_1g1zla5souFGtpiDdECxEw,352
3
- fmu_manipulation_toolbox/__version__.py,sha256=niVpMeIUg7iKHRlsUPuXHpvJ5XeFDKAdI2L5ilFhMbg,11
3
+ fmu_manipulation_toolbox/__version__.py,sha256=R7smX8GS97dJQQkbyMyuJlII_VKNOhykVYnb42E_LKw,11
4
4
  fmu_manipulation_toolbox/assembly.py,sha256=XQ_1sB6K1Dk2mnNe-E3_6Opoeub7F9Qaln0EUDzsop8,26553
5
5
  fmu_manipulation_toolbox/checker.py,sha256=jw1omfrMMIMHlIpHXpWBcQgIiS9hnHe5T9CZ5KlbVGs,2422
6
- fmu_manipulation_toolbox/container.py,sha256=Anubg08tr0HRb1_6rUqIRoE3E6emv6pKqDbs2aezv38,45625
6
+ fmu_manipulation_toolbox/container.py,sha256=Ed6JsWM2oMs-jyGyKmrHHebNuG4qwiGLYtx0BREIiBE,45710
7
7
  fmu_manipulation_toolbox/gui.py,sha256=ax-IbGO7GyBG0Mb5okN588CKQDfMxoF1uZtD1_CYnjc,29199
8
8
  fmu_manipulation_toolbox/gui_style.py,sha256=s6WdrnNd_lCMWhuBf5LKK8wrfLXCU7pFTLUfvqkJVno,6633
9
9
  fmu_manipulation_toolbox/help.py,sha256=aklKiLrsE0adSzQ5uoEB1sBDmI6s4l231gavu4XxxzA,5856
10
10
  fmu_manipulation_toolbox/operations.py,sha256=WayxcpnVRpvxGOXx2I5Vh9ThVbj6IRW6Vr8qKfqck8Y,17348
11
- fmu_manipulation_toolbox/remoting.py,sha256=vsvGRIUr-VxUkpBMCfE_G0kYVnB2CN03ts_Imi2uLk8,3814
11
+ fmu_manipulation_toolbox/remoting.py,sha256=N25MDFkIcEWe9CIT1M4L9kea3j-8E7i2I1VOI6zIAdw,3876
12
12
  fmu_manipulation_toolbox/split.py,sha256=NVkfdTRR0jj_VOdgtxHQoKptkAg5TFVUA7nUx3_o9Pg,13336
13
13
  fmu_manipulation_toolbox/version.py,sha256=OhBLkZ1-nhC77kyvffPNAf6m8OZe1bYTnNf_PWs1NvM,392
14
14
  fmu_manipulation_toolbox/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  fmu_manipulation_toolbox/cli/fmucontainer.py,sha256=bxiOcVwHHLQaVtTga77t_UdE6duPX1kTXef53LyPqbA,4738
16
16
  fmu_manipulation_toolbox/cli/fmusplit.py,sha256=QSMHZJlNOYbaPgI6Z9QHr95mrC3PuXDeUXR2sHm73HU,1636
17
- fmu_manipulation_toolbox/cli/fmutool.py,sha256=OuPrDeqnbsMGV50Jq7ugX7q19gt9WI2v1HMXvOvzozM,5637
17
+ fmu_manipulation_toolbox/cli/fmutool.py,sha256=nCXcTZxBcgnZIe_oRYqKLdB6z_ZryXyIOpsaP6Tptak,5921
18
18
  fmu_manipulation_toolbox/cli/utils.py,sha256=gNhdlFYSSNSb0fovzS0crnxgmqqKXe0KtoZZFhRKhfg,1375
19
19
  fmu_manipulation_toolbox/resources/checkbox-checked-disabled.png,sha256=FWIuyrXlaNLLePHfXj7j9ca5rT8Hgr14KCe1EqTCZyk,2288
20
20
  fmu_manipulation_toolbox/resources/checkbox-checked-hover.png,sha256=KNlV-d_aJNTTvUVXKGT9DBY30sIs2LwocLJrFKNKv8k,2419
@@ -33,7 +33,7 @@ fmu_manipulation_toolbox/resources/icon_fmu.png,sha256=EuygB2xcoM2WAfKKdyKG_UvTL
33
33
  fmu_manipulation_toolbox/resources/license.txt,sha256=5ODuU8g8pIkK-NMWXu_rjZ6k7gM7b-N2rmg87-2Kmqw,1583
34
34
  fmu_manipulation_toolbox/resources/mask.png,sha256=px1U4hQGL0AmZ4BQPknOVREpMpTSejbah3ntkpqAzFA,3008
35
35
  fmu_manipulation_toolbox/resources/model.png,sha256=EAf_HnZJe8zYGZygerG1MMt2U-tMMZlifzXPj4_iORA,208788
36
- fmu_manipulation_toolbox/resources/darwin64/container.dylib,sha256=hc8FpHbqZDkpnLRy8oKfhk7iSTW7G89B4sACASW4Ta8,161560
36
+ fmu_manipulation_toolbox/resources/darwin64/container.dylib,sha256=G_Q-Nyb4f_eOYWuBawtCCnXvBl4duwh826fGoG95-Cs,161560
37
37
  fmu_manipulation_toolbox/resources/fmi-2.0/fmi2Annotation.xsd,sha256=OGfyJtaJntKypX5KDpuZ-nV1oYLZ6HV16pkpKOmYox4,2731
38
38
  fmu_manipulation_toolbox/resources/fmi-2.0/fmi2AttributeGroups.xsd,sha256=HwyV7LBse-PQSv4z1xjmtzPU3Hjnv4mluq9YdSBNHMQ,3704
39
39
  fmu_manipulation_toolbox/resources/fmi-2.0/fmi2ModelDescription.xsd,sha256=JM4j_9q-pc40XYHb28jfT3iV3aYM5JLqD5aRjO72K1E,18939
@@ -53,19 +53,19 @@ fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Type.xsd,sha256=TaHRoUBIFtmdEwBKB
53
53
  fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Unit.xsd,sha256=CK_F2t5LfyQ6eSNJ8soTFMVK9DU8vD2WiMi2MQvjB0g,3746
54
54
  fmu_manipulation_toolbox/resources/fmi-3.0/fmi3Variable.xsd,sha256=3YU-3q1-c-namz7sMe5cxnmOVOJsRSmfWR02PKv3xaU,19171
55
55
  fmu_manipulation_toolbox/resources/fmi-3.0/fmi3VariableDependency.xsd,sha256=YQSBwXt4IsDlyegY8bX-qQHGSfE5TipTPfo2g2yqq1c,3082
56
- fmu_manipulation_toolbox/resources/linux32/client_sm.so,sha256=ytv2fMHRYkQS4v_ODKVCt3Z_19k7tCYTKT8kKOK0Pu0,34756
57
- fmu_manipulation_toolbox/resources/linux32/server_sm,sha256=pHXd5rRyJrCEUPGxVcK3irE86ThxVUTBRn_rgOZdSYg,21224
58
- fmu_manipulation_toolbox/resources/linux64/client_sm.so,sha256=xBgQTTiww_SON8bHP4UP6UT8PqzzHiBgJHTiiG3Asi8,32592
59
- fmu_manipulation_toolbox/resources/linux64/container.so,sha256=cCue2KyQjBi75dJnlySPVmAGb8H0WzpHqhxYkB7Aay4,135520
60
- fmu_manipulation_toolbox/resources/linux64/server_sm,sha256=A6-IQUCN51r5rQkEW9lJJuZKqRPgeoxyMwjc5NNMq-A,22552
61
- fmu_manipulation_toolbox/resources/win32/client_sm.dll,sha256=1HXgBXj0FwLmT7xPdlWCYsTRu-TnggJTTNtkrDS7v0o,17408
62
- fmu_manipulation_toolbox/resources/win32/server_sm.exe,sha256=h4CkEB4a47vF_Dsnwbvy9YwIra8mn_taWYTkBdlDrNc,15360
63
- fmu_manipulation_toolbox/resources/win64/client_sm.dll,sha256=diUwWUB_pKjbU2NT8q4JUaby6ppAQnxbTj6ZCAxjTK8,20992
64
- fmu_manipulation_toolbox/resources/win64/container.dll,sha256=-EnDn6FIpLxX3L0vp1tGAOp78fQAQfaIWl4tC0P1rj8,98816
65
- fmu_manipulation_toolbox/resources/win64/server_sm.exe,sha256=5woZaxLhHP5xr7tOSCz6JmaHK9Wb0xuB0pzdROUDDpU,18432
66
- fmu_manipulation_toolbox-1.9rc5.dist-info/licenses/LICENSE.txt,sha256=c_862mzyk6ownO3Gt6cVs0-53IXLi_-ZEQFNDVabESw,1285
67
- fmu_manipulation_toolbox-1.9rc5.dist-info/METADATA,sha256=8O6lxLDyaW5Fu3qxa4PNsyawnvBtEtDuozgyHxvJ-4w,1156
68
- fmu_manipulation_toolbox-1.9rc5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
- fmu_manipulation_toolbox-1.9rc5.dist-info/entry_points.txt,sha256=HjOZkflbI1IuSY8BpOZre20m24M4GDQGCJfPIa7NrlY,264
70
- fmu_manipulation_toolbox-1.9rc5.dist-info/top_level.txt,sha256=9D_h-5BMjSqf9z-XFkbJL_bMppR2XNYW3WNuPkXou0k,25
71
- fmu_manipulation_toolbox-1.9rc5.dist-info/RECORD,,
56
+ fmu_manipulation_toolbox/resources/linux32/client_sm.so,sha256=UapKWBFpTV9F-ehbBijh7Q1SeylBjVOhUVKJ3wVXPsE,34756
57
+ fmu_manipulation_toolbox/resources/linux32/server_sm,sha256=gzKU0BTeaRkvhTMQtHHj3K8uYFyEdyGGn_mZy_jG9xo,21304
58
+ fmu_manipulation_toolbox/resources/linux64/client_sm.so,sha256=IIqzR9WmMZUpRbwcCXyMHJnx920zvdO1wrWuAlrfyUE,32592
59
+ fmu_manipulation_toolbox/resources/linux64/container.so,sha256=i0HjYarS79uDaPzhOd3bY7vjqVR_cSL89fo6hepb184,135520
60
+ fmu_manipulation_toolbox/resources/linux64/server_sm,sha256=MZn6vITN2qpBHYt_RaK2VnFFp00hk8fTALBHmXPtLwc,22608
61
+ fmu_manipulation_toolbox/resources/win32/client_sm.dll,sha256=UYr8gstiVAOcOaZSPXdMV0qBLreUFHEBaAPISTLlfJA,17920
62
+ fmu_manipulation_toolbox/resources/win32/server_sm.exe,sha256=YEVu547ZwrORLAsryjaWgII9iqgg2zxPEM61J--Dm1M,15360
63
+ fmu_manipulation_toolbox/resources/win64/client_sm.dll,sha256=4W3Giq_aJf2GUPcLUXmjRiop02VtSySywFgtKVJ-NSU,21504
64
+ fmu_manipulation_toolbox/resources/win64/container.dll,sha256=r8hdfh4T9de8tvrG7Xlz0cJi1_XzdGuly7LCIdFagZk,98816
65
+ fmu_manipulation_toolbox/resources/win64/server_sm.exe,sha256=2PibjuEn-6MIwh4Wl7yD7mZ1ikSjzBsh36Ne5CGPqfQ,18432
66
+ fmu_manipulation_toolbox-1.9rc7.dist-info/licenses/LICENSE.txt,sha256=c_862mzyk6ownO3Gt6cVs0-53IXLi_-ZEQFNDVabESw,1285
67
+ fmu_manipulation_toolbox-1.9rc7.dist-info/METADATA,sha256=f8pnsoOG3D6mbzbycL5kF7XMlxyqWoK9Uk1jTyttbdg,1156
68
+ fmu_manipulation_toolbox-1.9rc7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
+ fmu_manipulation_toolbox-1.9rc7.dist-info/entry_points.txt,sha256=HjOZkflbI1IuSY8BpOZre20m24M4GDQGCJfPIa7NrlY,264
70
+ fmu_manipulation_toolbox-1.9rc7.dist-info/top_level.txt,sha256=9D_h-5BMjSqf9z-XFkbJL_bMppR2XNYW3WNuPkXou0k,25
71
+ fmu_manipulation_toolbox-1.9rc7.dist-info/RECORD,,