pyedb 0.14.0__py3-none-any.whl → 0.14.1__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.

Potentially problematic release.


This version of pyedb might be problematic. Click here for more details.

pyedb/__init__.py CHANGED
@@ -44,7 +44,7 @@ deprecation_warning()
44
44
  #
45
45
 
46
46
  pyedb_path = os.path.dirname(__file__)
47
- __version__ = "0.14.0"
47
+ __version__ = "0.14.1"
48
48
  version = __version__
49
49
 
50
50
  #
@@ -168,6 +168,7 @@ class SimulationSetup(object):
168
168
  version = self._pedb.edbversion.split(".")
169
169
  if int(version[0]) == 2024 and int(version[1]) == 2 or int(version[0]) > 2024:
170
170
  setup_type_mapping["kRaptorX"] = utility.RaptorXSimulationSetup
171
+ setup_type_mapping["kHFSSPI"] = utility.HFSSPISimulationSetup
171
172
  setup_utility = setup_type_mapping[self._setup_type]
172
173
  return setup_utility(edb_setup_info)
173
174
 
pyedb/siwave.py CHANGED
@@ -21,6 +21,22 @@ from pyedb.misc.misc import list_installed_ansysem
21
21
  from pyedb.siwave_core.icepak import Icepak
22
22
 
23
23
 
24
+ def wait_export_file(flag, file_path, time_sleep=0.5):
25
+ while True:
26
+ if os.path.isfile(file_path):
27
+ break
28
+ else:
29
+ time.sleep(1)
30
+ os.path.getsize(file_path)
31
+ while True:
32
+ file_size = os.path.getsize(file_path)
33
+ if file_size > 0:
34
+ break
35
+ else:
36
+ time.sleep(time_sleep)
37
+ return True
38
+
39
+
24
40
  class Siwave(object): # pragma no cover
25
41
  """Initializes SIwave based on the inputs provided and manages SIwave release and closing.
26
42
 
@@ -309,8 +325,12 @@ class Siwave(object): # pragma no cover
309
325
  bool
310
326
  ``True`` when successful, ``False`` when failed.
311
327
  """
312
- self.oproject.ScrExportElementData(simulation_name, file_path, data_type)
313
- return True
328
+ flag = self.oproject.ScrExportElementData(simulation_name, file_path, data_type)
329
+ if flag == 0:
330
+ self._logger.info(f"Exporting element data to {file_path}.")
331
+ return wait_export_file(flag, file_path, time_sleep=1)
332
+ else:
333
+ return False
314
334
 
315
335
  def export_siwave_report(self, simulation_name, file_path, bkground_color="White"):
316
336
  """Export the Siwave report.
@@ -358,20 +378,8 @@ class Siwave(object): # pragma no cover
358
378
  self.oproject.ScrExportDcSimReportScaling("All", "All", -1, -1, False)
359
379
  flag = self.oproject.ScrExportDcSimReport(simulation_name, background_color, fpath)
360
380
  if flag == 0:
361
- while True:
362
- self._logger.info(f"Exporting Siwave DC simulation report to {fpath}.")
363
- if os.path.isfile(fpath):
364
- break
365
- else:
366
- time.sleep(1)
367
- os.path.getsize(fpath)
368
- while True:
369
- file_size = os.path.getsize(fpath)
370
- if file_size > 0:
371
- break
372
- else:
373
- time.sleep(1)
374
- return True
381
+ self._logger.info(f"Exporting Siwave DC simulation report to {fpath}.")
382
+ return wait_export_file(flag, fpath, time_sleep=1)
375
383
  else:
376
384
  return False
377
385
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyedb
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: Higher-Level Pythonic Ansys Electronics Data Base
5
5
  Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
6
6
  Maintainer-email: PyEDB developers <simon.vandenbrouck@ansys.com>
@@ -1,7 +1,7 @@
1
- pyedb/__init__.py,sha256=a4MDi9HhM1y7ivscGHNtGgkgMu2g_yR8q5q97tvwhWU,1521
1
+ pyedb/__init__.py,sha256=Df6ehqZ1D-DYShUd_Rs5PalXJtQOEbj2OKMx1wvUKc0,1521
2
2
  pyedb/edb_logger.py,sha256=yNkXnoL2me7ubLT6O6r6ElVnkZ1g8fmfFYC_2XJZ1Sw,14950
3
3
  pyedb/exceptions.py,sha256=n94xluzUks6BA24vd_L6HkrvoP_H_l6__hQmqzdCyPo,111
4
- pyedb/siwave.py,sha256=HMCbGb0_OnwGx7WmVyk-gC5xq3SRTbIbAwcTUCV6E3E,12865
4
+ pyedb/siwave.py,sha256=p-j2AmJ3RPG9IKieDxiVPRhzRlXbjpxENP9GHAgT6l8,13086
5
5
  pyedb/configuration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  pyedb/configuration/cfg_boundaries.py,sha256=ckb-OfaObItwy-xc0LqkHJyeCfKC5vg668olPjZbaKo,6647
7
7
  pyedb/configuration/cfg_common.py,sha256=PVLYBv6pWiVAPa4haOsXdC87hH82rpZTkVW-MOqUObs,2020
@@ -94,7 +94,7 @@ pyedb/dotnet/edb_core/sim_setup_data/io/siwave.py,sha256=XOGBUtFuBJ61lsyylmW0mR_
94
94
  pyedb/dotnet/edb_core/utilities/__init__.py,sha256=8jByHkoaowAYQTCww-zRrTQmN061fLz_OHjTLSrzQQY,58
95
95
  pyedb/dotnet/edb_core/utilities/heatsink.py,sha256=7G7Yx9TxbL5EAiR51MnhdRiAQBVf-d0hKsXDw5OYX2Q,2220
96
96
  pyedb/dotnet/edb_core/utilities/obj_base.py,sha256=lufR0sZj0QfZ2wlNvLL6aM1KVqCNY2A7taPPdWcK20w,3312
97
- pyedb/dotnet/edb_core/utilities/simulation_setup.py,sha256=UbEbs90j-cHQYukeGUrctPlKr5l70Aj6o-ZXsT94bQ8,34262
97
+ pyedb/dotnet/edb_core/utilities/simulation_setup.py,sha256=O183XsQHwdpC6j5YcNaTO2d7ZymLsQx_ZZ8nc6nrbZo,34336
98
98
  pyedb/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
99
  pyedb/generic/constants.py,sha256=prWLZH0-SeBIVK6LHZ4SGZFQCofuym2TuQYfdqwhuSQ,28956
100
100
  pyedb/generic/data_handlers.py,sha256=rfqNe2tPCJRqhXZBCyWxRFu5SjQ92Cdzq4l0TDC4Pvw,6905
@@ -167,7 +167,7 @@ pyedb/misc/siw_feature_config/emc/tag_library.py,sha256=yUK4w3hequU017E2DbkA4KE2
167
167
  pyedb/misc/siw_feature_config/emc/xml_generic.py,sha256=55X-V0OxWq-v7FTiDVjaZif8V_2xxsvJlJ8bs9Bf61I,2521
168
168
  pyedb/modeler/geometry_operators.py,sha256=iXNGfp3oMAxc6Ij_jatawR9NAKksMfnmWTaoHQVGX80,72699
169
169
  pyedb/siwave_core/icepak.py,sha256=WnZ-t8mik7LDY06V8hZFV-TxRZJQWK7bu_8Ichx-oBs,5206
170
- pyedb-0.14.0.dist-info/LICENSE,sha256=qQWivZ12ETN5l3QxvTARY-QI5eoRRlyHdwLlAj0Bg5I,1089
171
- pyedb-0.14.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
172
- pyedb-0.14.0.dist-info/METADATA,sha256=u08pkNNxLDxUgFbD3P3PPn43CK5emzwDV_QwzDBsnc8,8336
173
- pyedb-0.14.0.dist-info/RECORD,,
170
+ pyedb-0.14.1.dist-info/LICENSE,sha256=qQWivZ12ETN5l3QxvTARY-QI5eoRRlyHdwLlAj0Bg5I,1089
171
+ pyedb-0.14.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
172
+ pyedb-0.14.1.dist-info/METADATA,sha256=5Geyw9jdZDbGfn7m02baD7dsjBOI734HGrT1tlpHs_Y,8336
173
+ pyedb-0.14.1.dist-info/RECORD,,
File without changes