fmu-manipulation-toolbox 1.8.2rc2__py3-none-any.whl → 1.8.2.2__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.
@@ -1 +1 @@
1
- 'V1.8.2-rc2'
1
+ 'V1.8.2.2'
@@ -316,7 +316,7 @@ class FMUContainer:
316
316
  cport = ContainerPort(fmu, port_name)
317
317
  if cport not in self.rules:
318
318
  if cport.port.causality == 'parameter' and auto_parameter:
319
- parameter_name = cport.fmu.model_identifier+"."+cport.port.name
319
+ parameter_name = cport.fmu.id + "." + cport.port.name
320
320
  logger.info(f"AUTO PARAMETER: {cport} as {parameter_name}")
321
321
  self.inputs[parameter_name] = cport
322
322
  self.mark_ruled(cport, 'PARAMETER')
@@ -668,11 +668,17 @@ class FMUContainer:
668
668
 
669
669
  def make_fmu_package(self, base_directory: Path, fmu_filename: Path):
670
670
  logger.debug(f"Zipping directory '{base_directory}' => '{fmu_filename}'")
671
+ zip_directory = self.long_path(str(base_directory.absolute()))
672
+ offset = len(zip_directory) + 1
671
673
  with zipfile.ZipFile(self.fmu_directory / fmu_filename, "w", zipfile.ZIP_DEFLATED) as zip_file:
672
- for root, dirs, files in os.walk(base_directory):
673
- for file in files:
674
- zip_file.write(self.long_path(os.path.join(root, file)),
675
- os.path.relpath(os.path.join(root, file), base_directory))
674
+ def add_file(directory: Path):
675
+ for entry in directory.iterdir():
676
+ if entry.is_dir():
677
+ add_file(directory / entry)
678
+ elif entry.is_file:
679
+ zip_file.write(str(entry), str(entry)[offset:])
680
+
681
+ add_file(Path(zip_directory))
676
682
  logger.info(f"'{fmu_filename}' is available.")
677
683
 
678
684
  def make_fmu_cleanup(self, base_directory: Path):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: fmu_manipulation_toolbox
3
- Version: 1.8.2rc2
3
+ Version: 1.8.2.2
4
4
  Summary: FMU Manipulation Toobox is a python application which help to modify a Functional Mock-up Units (FMUs) without recompilation or to group them into FMU Containers
5
5
  Home-page: https://github.com/grouperenault/fmu_manipulation_toolbox/
6
6
  Author: Nicolas.LAURENT@Renault.com
@@ -12,6 +12,7 @@ Requires-Dist: colorama>=0.4.6
12
12
  Dynamic: author
13
13
  Dynamic: description
14
14
  Dynamic: home-page
15
+ Dynamic: license-file
15
16
  Dynamic: requires-dist
16
17
  Dynamic: summary
17
18
 
@@ -1,10 +1,10 @@
1
1
  fmu_manipulation_toolbox/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
2
  fmu_manipulation_toolbox/__main__.py,sha256=mAzrtkil506DS0F3g3CEbHdtZsZotzntcNhIn_lNJkw,344
3
- fmu_manipulation_toolbox/__version__.py,sha256=gH9BBqhOUmu3T0bGuVJw2HoybsfzfEsU3Y0umpitY8s,13
3
+ fmu_manipulation_toolbox/__version__.py,sha256=ZmwMmmqLfOucUilq7TffGXkEyo_UIsEcgO0NvL9PaIA,11
4
4
  fmu_manipulation_toolbox/assembly.py,sha256=pAAE_eWPfD-8BzZ7gvaHARhQt4-IV2jVvsMnJXeAtLI,25541
5
5
  fmu_manipulation_toolbox/checker.py,sha256=lE2MpH4BAKCDjUvbr06N56u7ao8hWXaJgMKaLvmhFTQ,2272
6
6
  fmu_manipulation_toolbox/cli.py,sha256=2p5T1qp7kTcMlScwmvXyUfEmAIGSJsld96ObY216QMA,10616
7
- fmu_manipulation_toolbox/fmu_container.py,sha256=VTZlRTXAYcaYLijgN4ReuG6hLQ2XRgxctPJdEYRfOcc,28755
7
+ fmu_manipulation_toolbox/fmu_container.py,sha256=n_PBIpB_8vUKtEUKjXSDelreW_cu7HZrhP_nouyE80s,28927
8
8
  fmu_manipulation_toolbox/fmu_operations.py,sha256=WE-lCNNOYr3pakMkwzpsp_lBhb2P4s7Ez5HnxQLbVdk,15814
9
9
  fmu_manipulation_toolbox/gui.py,sha256=bGG4iPddGsT4tLBv1zjSpbIkyctHVfbRt0kGxdTTrTc,29219
10
10
  fmu_manipulation_toolbox/gui_style.py,sha256=jjDhzSw5hu_6-bOOhsvI_MxQZOqt9SjpKK6T83Gubr4,2926
@@ -37,16 +37,16 @@ fmu_manipulation_toolbox/resources/fmi-2.0/fmi2VariableDependency.xsd,sha256=Tc9
37
37
  fmu_manipulation_toolbox/resources/linux32/client_sm.so,sha256=xVdY2zy13pa2DcvFiweSNpp7E6DiONqeoBdlcJHrW_k,35940
38
38
  fmu_manipulation_toolbox/resources/linux32/server_sm,sha256=1TLGqNPyM5UVOrCfzNqWyF6ClLksY3EiY3CSsrnp6c0,22836
39
39
  fmu_manipulation_toolbox/resources/linux64/client_sm.so,sha256=EhY1XHo1YcQn6yqZ7wk5okqtZyp0MrcCsGcudqE-aIM,37000
40
- fmu_manipulation_toolbox/resources/linux64/container.so,sha256=onX32320NM2_EJMtLflknpte9WaN7ZUSyezTOc0HCGY,45984
40
+ fmu_manipulation_toolbox/resources/linux64/container.so,sha256=BUOjgUqczpPVqVJYDUTiAGfEedk5NNwb_LAJ3fBo6_8,46080
41
41
  fmu_manipulation_toolbox/resources/linux64/server_sm,sha256=ulfoPvmaYe9nInYcVEyj7mD9zDzGk56OUoWx1mPKLiE,22768
42
- fmu_manipulation_toolbox/resources/win32/client_sm.dll,sha256=2rdjTnS5qIEXILEjlp2Sx2HmO0eB6Rgoq3j0eLJ3lNc,17920
43
- fmu_manipulation_toolbox/resources/win32/server_sm.exe,sha256=Q4FlXD4toZXKUiiIZkY1GvF3P8Rsv7_D9R5Nn0m73bs,15872
44
- fmu_manipulation_toolbox/resources/win64/client_sm.dll,sha256=hbq9h5tsuCwAx0HBWxNOM5wilOojsPnGh4q2DaSAZlk,22016
45
- fmu_manipulation_toolbox/resources/win64/container.dll,sha256=GIDuHU8OQ1X33CI-hzHTBI00wVAUDhdLR-Calq3HqkA,36864
46
- fmu_manipulation_toolbox/resources/win64/server_sm.exe,sha256=jswWUcJu6EbP8lTaLMvlVLyeU1wtndaBpla237HBM64,19456
47
- fmu_manipulation_toolbox-1.8.2rc2.dist-info/LICENSE.txt,sha256=c_862mzyk6ownO3Gt6cVs0-53IXLi_-ZEQFNDVabESw,1285
48
- fmu_manipulation_toolbox-1.8.2rc2.dist-info/METADATA,sha256=rURX1AikSzeTW-Qs7D2Xn_nUgB9V8D0lCLcQnX6s86g,1066
49
- fmu_manipulation_toolbox-1.8.2rc2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
50
- fmu_manipulation_toolbox-1.8.2rc2.dist-info/entry_points.txt,sha256=jCPLMBdS-eOvmRfDv7n0wHZSbJHccHviW03mz5vwO-Q,124
51
- fmu_manipulation_toolbox-1.8.2rc2.dist-info/top_level.txt,sha256=9D_h-5BMjSqf9z-XFkbJL_bMppR2XNYW3WNuPkXou0k,25
52
- fmu_manipulation_toolbox-1.8.2rc2.dist-info/RECORD,,
42
+ fmu_manipulation_toolbox/resources/win32/client_sm.dll,sha256=9SIR_sMWsQoFcTXA4LnLhc2DZurXq8bXM0NydxVoZBY,17920
43
+ fmu_manipulation_toolbox/resources/win32/server_sm.exe,sha256=p6J_w56qDlortkzGQeYBgPHlOU8l5Ojchi08tcbvEb4,15872
44
+ fmu_manipulation_toolbox/resources/win64/client_sm.dll,sha256=aoT6FYurl8VUPedAbzUdNhcB60p7TPaIdfcA2U8UQ28,22016
45
+ fmu_manipulation_toolbox/resources/win64/container.dll,sha256=xMTPDvfBhlSHHuPafX-6opHancrhChIpWqfUDmczNhQ,37888
46
+ fmu_manipulation_toolbox/resources/win64/server_sm.exe,sha256=ultqGaqnF1m58BqkMJuv_FLksYtVHTFyZKTC8DCt5Bc,19456
47
+ fmu_manipulation_toolbox-1.8.2.2.dist-info/licenses/LICENSE.txt,sha256=c_862mzyk6ownO3Gt6cVs0-53IXLi_-ZEQFNDVabESw,1285
48
+ fmu_manipulation_toolbox-1.8.2.2.dist-info/METADATA,sha256=RxqQOa8BudLur3X7aHCXTJ9Q7kg_iszk-WCtYHX-gtU,1087
49
+ fmu_manipulation_toolbox-1.8.2.2.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
50
+ fmu_manipulation_toolbox-1.8.2.2.dist-info/entry_points.txt,sha256=jCPLMBdS-eOvmRfDv7n0wHZSbJHccHviW03mz5vwO-Q,124
51
+ fmu_manipulation_toolbox-1.8.2.2.dist-info/top_level.txt,sha256=9D_h-5BMjSqf9z-XFkbJL_bMppR2XNYW3WNuPkXou0k,25
52
+ fmu_manipulation_toolbox-1.8.2.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (77.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5