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.
- fmu_manipulation_toolbox/__version__.py +1 -1
- fmu_manipulation_toolbox/cli/fmutool.py +10 -1
- fmu_manipulation_toolbox/container.py +19 -16
- fmu_manipulation_toolbox/remoting.py +6 -4
- fmu_manipulation_toolbox/resources/darwin64/container.dylib +0 -0
- fmu_manipulation_toolbox/resources/linux32/client_sm.so +0 -0
- fmu_manipulation_toolbox/resources/linux32/server_sm +0 -0
- fmu_manipulation_toolbox/resources/linux64/client_sm.so +0 -0
- fmu_manipulation_toolbox/resources/linux64/container.so +0 -0
- fmu_manipulation_toolbox/resources/linux64/server_sm +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-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/METADATA +1 -1
- {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/RECORD +21 -21
- {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/WHEEL +0 -0
- {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/entry_points.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/licenses/LICENSE.txt +0 -0
- {fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
'V1.9-
|
|
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
|
-
|
|
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
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
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(
|
|
65
|
-
if
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
{fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fmu_manipulation_toolbox
|
|
3
|
-
Version: 1.
|
|
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
|
{fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
57
|
-
fmu_manipulation_toolbox/resources/linux32/server_sm,sha256=
|
|
58
|
-
fmu_manipulation_toolbox/resources/linux64/client_sm.so,sha256=
|
|
59
|
-
fmu_manipulation_toolbox/resources/linux64/container.so,sha256=
|
|
60
|
-
fmu_manipulation_toolbox/resources/linux64/server_sm,sha256=
|
|
61
|
-
fmu_manipulation_toolbox/resources/win32/client_sm.dll,sha256=
|
|
62
|
-
fmu_manipulation_toolbox/resources/win32/server_sm.exe,sha256=
|
|
63
|
-
fmu_manipulation_toolbox/resources/win64/client_sm.dll,sha256=
|
|
64
|
-
fmu_manipulation_toolbox/resources/win64/container.dll,sha256
|
|
65
|
-
fmu_manipulation_toolbox/resources/win64/server_sm.exe,sha256=
|
|
66
|
-
fmu_manipulation_toolbox-1.
|
|
67
|
-
fmu_manipulation_toolbox-1.
|
|
68
|
-
fmu_manipulation_toolbox-1.
|
|
69
|
-
fmu_manipulation_toolbox-1.
|
|
70
|
-
fmu_manipulation_toolbox-1.
|
|
71
|
-
fmu_manipulation_toolbox-1.
|
|
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,,
|
{fmu_manipulation_toolbox-1.9rc5.dist-info → fmu_manipulation_toolbox-1.9rc7.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|