pyedb 0.34.0__py3-none-any.whl → 0.34.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.34.0"
47
+ __version__ = "0.34.1"
48
48
  version = __version__
49
49
 
50
50
  #
@@ -503,7 +503,16 @@ class StackupLayerEdbClass(LayerEdbClass):
503
503
 
504
504
  @top_hallhuray_nodule_radius.setter
505
505
  def top_hallhuray_nodule_radius(self, value):
506
- self._top_hallhuray_nodule_radius = value
506
+ top_roughness_model = self.get_roughness_model("top")
507
+ if top_roughness_model:
508
+ if str(top_roughness_model).split(".")[-1] == "HurrayRoughnessModel":
509
+ layer_clone = self._edb_layer
510
+ layer_clone.SetTopRoughnessEnabled(True)
511
+ self._top_hallhuray_nodule_radius = value
512
+ top_roughness_model.NoduleRadius = self._pedb.edb_value(value)
513
+ region = top_roughness_model.Region.Top
514
+ layer_clone.SetRoughnessModel(region, top_roughness_model)
515
+ self._pedb.stackup._set_layout_stackup(layer_clone, "change_attribute")
507
516
 
508
517
  @property
509
518
  def top_hallhuray_surface_ratio(self):
@@ -515,7 +524,16 @@ class StackupLayerEdbClass(LayerEdbClass):
515
524
 
516
525
  @top_hallhuray_surface_ratio.setter
517
526
  def top_hallhuray_surface_ratio(self, value):
518
- self._top_hallhuray_surface_ratio = value
527
+ top_roughness_model = self.get_roughness_model("top")
528
+ if top_roughness_model:
529
+ if str(top_roughness_model).split(".")[-1] == "HurrayRoughnessModel":
530
+ layer_clone = self._edb_layer
531
+ layer_clone.SetTopRoughnessEnabled(True)
532
+ self._top_hallhuray_surface_ratio = value
533
+ top_roughness_model.SurfaceRatio = self._pedb.edb_value(value)
534
+ region = top_roughness_model.Region.Top
535
+ layer_clone.SetRoughnessModel(region, top_roughness_model)
536
+ self._pedb.stackup._set_layout_stackup(layer_clone, "change_attribute")
519
537
 
520
538
  @property
521
539
  def bottom_hallhuray_nodule_radius(self):
@@ -527,7 +545,16 @@ class StackupLayerEdbClass(LayerEdbClass):
527
545
 
528
546
  @bottom_hallhuray_nodule_radius.setter
529
547
  def bottom_hallhuray_nodule_radius(self, value):
530
- self._bottom_hallhuray_nodule_radius = value
548
+ bottom_roughness_model = self.get_roughness_model("bottom")
549
+ if bottom_roughness_model:
550
+ if str(bottom_roughness_model).split(".")[-1] == "HurrayRoughnessModel":
551
+ layer_clone = self._edb_layer
552
+ layer_clone.SetBottomRoughnessEnabled(True)
553
+ self._bottom_hallhuray_nodule_radius = value
554
+ bottom_roughness_model.NoduleRadius = self._pedb.edb_value(value)
555
+ region = bottom_roughness_model.Region.Bottom
556
+ layer_clone.SetRoughnessModel(region, bottom_roughness_model)
557
+ self._pedb.stackup._set_layout_stackup(layer_clone, "change_attribute")
531
558
 
532
559
  @property
533
560
  def bottom_hallhuray_surface_ratio(self):
@@ -539,7 +566,16 @@ class StackupLayerEdbClass(LayerEdbClass):
539
566
 
540
567
  @bottom_hallhuray_surface_ratio.setter
541
568
  def bottom_hallhuray_surface_ratio(self, value):
542
- self._bottom_hallhuray_surface_ratio = value
569
+ bottom_roughness_model = self.get_roughness_model("bottom")
570
+ if bottom_roughness_model:
571
+ if str(bottom_roughness_model).split(".")[-1] == "HurrayRoughnessModel":
572
+ layer_clone = self._edb_layer
573
+ layer_clone.SetBottomRoughnessEnabled(True)
574
+ self._bottom_hallhuray_surface_ratio = value
575
+ bottom_roughness_model.SurfaceRatio = self._pedb.edb_value(value)
576
+ region = bottom_roughness_model.Region.Bottom
577
+ layer_clone.SetRoughnessModel(region, bottom_roughness_model)
578
+ self._pedb.stackup._set_layout_stackup(layer_clone, "change_attribute")
543
579
 
544
580
  @property
545
581
  def side_hallhuray_nodule_radius(self):
@@ -551,7 +587,16 @@ class StackupLayerEdbClass(LayerEdbClass):
551
587
 
552
588
  @side_hallhuray_nodule_radius.setter
553
589
  def side_hallhuray_nodule_radius(self, value):
554
- self._side_hallhuray_nodule_radius = value
590
+ side_roughness_model = self.get_roughness_model("side")
591
+ if side_roughness_model:
592
+ if str(side_roughness_model).split(".")[-1] == "HurrayRoughnessModel":
593
+ layer_clone = self._edb_layer
594
+ layer_clone.SetRoughnessEnabled(True)
595
+ self._side_hallhuray_nodule_radius = value
596
+ side_roughness_model.NoduleRadius = self._pedb.edb_value(value)
597
+ region = side_roughness_model.Region.Side
598
+ layer_clone.SetRoughnessModel(region, side_roughness_model)
599
+ self._pedb.stackup._set_layout_stackup(layer_clone, "change_attribute")
555
600
 
556
601
  @property
557
602
  def side_hallhuray_surface_ratio(self):
@@ -563,7 +608,16 @@ class StackupLayerEdbClass(LayerEdbClass):
563
608
 
564
609
  @side_hallhuray_surface_ratio.setter
565
610
  def side_hallhuray_surface_ratio(self, value):
566
- self._side_hallhuray_surface_ratio = value
611
+ side_roughness_model = self.get_roughness_model("side")
612
+ if side_roughness_model:
613
+ if str(side_roughness_model).split(".")[-1] == "HurrayRoughnessModel":
614
+ layer_clone = self._edb_layer
615
+ layer_clone.SetRoughnessEnabled(True)
616
+ self._side_hallhuray_surface_ratio = value
617
+ side_roughness_model.SurfaceRatio = self._pedb.edb_value(value)
618
+ region = side_roughness_model.Region.Side
619
+ layer_clone.SetRoughnessModel(region, side_roughness_model)
620
+ self._pedb.stackup._set_layout_stackup(layer_clone, "change_attribute")
567
621
 
568
622
  def get_roughness_model(self, surface="top"):
569
623
  """Get roughness model of the layer.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyedb
3
- Version: 0.34.0
3
+ Version: 0.34.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>
@@ -27,7 +27,7 @@ Requires-Dist: toml == 0.10.2
27
27
  Requires-Dist: scikit-rf
28
28
  Requires-Dist: ansys-sphinx-theme>=0.10.0,<1.1 ; extra == "doc"
29
29
  Requires-Dist: imageio>=2.30.0,<2.37 ; extra == "doc"
30
- Requires-Dist: ipython>=8.13.0,<8.30 ; extra == "doc"
30
+ Requires-Dist: ipython>=8.13.0,<8.31 ; extra == "doc"
31
31
  Requires-Dist: jupyterlab>=4.0.0,<4.4 ; extra == "doc"
32
32
  Requires-Dist: jupytext>=1.16.0,<1.17 ; extra == "doc"
33
33
  Requires-Dist: matplotlib>=3.5.0,<3.10 ; extra == "doc"
@@ -1,4 +1,4 @@
1
- pyedb/__init__.py,sha256=QDZQJEGmN8ozVPpYOuJ8bPgkeAyMFHii3mheyJ_LaKQ,1525
1
+ pyedb/__init__.py,sha256=zRwDIaZ3PBm0P5sxEGjdwWgOUX92sLSkfV2J8tV0e_Y,1525
2
2
  pyedb/edb_logger.py,sha256=7KXPvAMCKzlzJ5zioiNO5A3zkqbpCHhWHB4aXKfgu5Y,14959
3
3
  pyedb/exceptions.py,sha256=n94xluzUks6BA24vd_L6HkrvoP_H_l6__hQmqzdCyPo,111
4
4
  pyedb/siwave.py,sha256=Mgg5ZGzOUOtNdlePHcnrgN3rletQ7jrqRi3WfxF58uU,17727
@@ -80,7 +80,7 @@ pyedb/dotnet/edb_core/edb_data/control_file.py,sha256=qIXBJG0V_dvpvSqIycQcNOb8Ur
80
80
  pyedb/dotnet/edb_core/edb_data/design_options.py,sha256=RO9ip-T5Bfxpsl97_QEk0qDZsza3tLzIX2t25XLutys,2057
81
81
  pyedb/dotnet/edb_core/edb_data/edbvalue.py,sha256=Vj_11HXsQUNavizKp5FicORm6cjhXRh9uvxhv_D_RJc,1977
82
82
  pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py,sha256=wIKH4it1uYkEae4OimS3YE6QoSf8rAAIhxdTwtR9cqU,13040
83
- pyedb/dotnet/edb_core/edb_data/layer_data.py,sha256=Yg3y80d4dn47vtFaNUr2Mt8LRIKvu9TMGxQiu9CIc_s,29586
83
+ pyedb/dotnet/edb_core/edb_data/layer_data.py,sha256=d-gdIwODshMiHkdLCVoHtc0VbONzDYnZFil0WsUXN4c,33160
84
84
  pyedb/dotnet/edb_core/edb_data/nets_data.py,sha256=fXJ1U18ZLm9xI7MJD3UcTsI8XNZSq5kf20KF2IMib4o,10137
85
85
  pyedb/dotnet/edb_core/edb_data/padstacks_data.py,sha256=1j_GG552iwvzvx6TKI3Yx6C3RXOWiSNehdlbD8AuzaI,78474
86
86
  pyedb/dotnet/edb_core/edb_data/ports.py,sha256=wr2RQi8VExuNIVmnp7c4VpTIhODgthmJmHr01zO4ueo,8873
@@ -188,7 +188,7 @@ pyedb/misc/siw_feature_config/xtalk_scan/scan_config.py,sha256=YmYI6WTQulL5Uf8Wx
188
188
  pyedb/misc/siw_feature_config/xtalk_scan/td_xtalk_config.py,sha256=KHa-UqcXuabiVfT2CV-UvWl5Q2qGYHF2Ye9azcAlnXc,3966
189
189
  pyedb/modeler/geometry_operators.py,sha256=g_Sy7a6R23sP6RtboJn1rl8uTuo8oeLmMF21rNkzwjk,74198
190
190
  pyedb/siwave_core/icepak.py,sha256=WnZ-t8mik7LDY06V8hZFV-TxRZJQWK7bu_8Ichx-oBs,5206
191
- pyedb-0.34.0.dist-info/LICENSE,sha256=qQWivZ12ETN5l3QxvTARY-QI5eoRRlyHdwLlAj0Bg5I,1089
192
- pyedb-0.34.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
193
- pyedb-0.34.0.dist-info/METADATA,sha256=6eG251kM6ji9x7LJqi29QQC14ROMC5fqebanw9STWcc,8512
194
- pyedb-0.34.0.dist-info/RECORD,,
191
+ pyedb-0.34.1.dist-info/LICENSE,sha256=qQWivZ12ETN5l3QxvTARY-QI5eoRRlyHdwLlAj0Bg5I,1089
192
+ pyedb-0.34.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
193
+ pyedb-0.34.1.dist-info/METADATA,sha256=m4DCanHy1Nb4lCcqxh29iHLYidI1TXM1a1FOY1ewvlI,8512
194
+ pyedb-0.34.1.dist-info/RECORD,,
File without changes