Extra 'Default' netclass added when GetAllNetClasses() called
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Medium
|
Dave Vandenbout |
Bug Description
When using the python API, calling board.GetAllNet
This is because the netclass map for the board is being modified. A comment in the source code already notes that this may happen and suggests a fix. This should be implemented.
See pcbnew.py
20766 # Add the Default one too, but this is probably modifying the NETCLASS_MAP
20767 # in the BOARD. If that causes trouble, could make a deepcopy() here first.
20768 # netclassmap = deepcopy(
Kicad version info below:
Application: kicad
Version: 6.0.0-rc1-
Libraries:
wxWidgets 3.0.2
libcurl/7.55.1 OpenSSL/1.1.0i zlib/1.2.11 libidn2/2.0.5 libpsl/0.18.0 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.31.1
Platform: Linux 4.18.16-
Build Info:
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.64.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.55.1
Compiler: GCC 7.3.1 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
importance: | Undecided → Medium |
Changed in kicad: | |
status: | New → Triaged |
tags: | added: pcbnew python |
tags: | added: starter |
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
Fixed in revision 44734dc05993d9e c19569b64b75af7 de06e52c81 /git.launchpad. net/kicad/ patch/? id=44734dc05993 d9ec19569b64b75 af7de06e52c81
https:/