Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/1706.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EDB CFG cutout
14 changes: 8 additions & 6 deletions src/pyedb/configuration/cfg_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
# from pyedb.configuration.cfg_common import CfgBase


class CfgAutoIdentifyNets(BaseModel):
enabled: bool = False
resistor_below: float | str | None = 100
inductor_below: float | str | None = 1
capacitor_above: float | str | None = "10nF"


class CfgCutout(BaseModel):
auto_identify_nets: Optional[Dict] = {
"enabled": False,
"resistor_below": 100,
"inductor_below": 1,
"capacitor_above": 1,
}
auto_identify_nets: CfgAutoIdentifyNets | None = CfgAutoIdentifyNets()
signal_list: Optional[List[str]] = None
reference_list: Optional[List[str]] = None
extent_type: Optional[str] = "ConvexHull"
Expand Down
5 changes: 5 additions & 0 deletions src/pyedb/dotnet/database/net_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ def auto_identify_power(self, resistor_below=10, inductor_below=1, capacitor_abo
resistor_below, inductor_below, capacitor_above, exception_list, True, True
)

def clean(self):
"""Remove all extended nets."""
for net in self.items.values():
net.delete()


class EdbDifferentialPairs(EdbCommon, object):
"""Manages EDB methods for managing nets accessible from the ``Edb.differential_pairs`` property.
Expand Down
Loading