Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when computing statistics on FlexPCB #853

Open
2 tasks done
JDufrenneAnsys opened this issue Oct 11, 2024 · 0 comments
Open
2 tasks done

Error when computing statistics on FlexPCB #853

JDufrenneAnsys opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JDufrenneAnsys
Copy link
Collaborator

Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

*** getStatistics error :**

Issues seems to be related BendArea objects.
And the root cause seems to be in primiteve_cast (layout.py)..
In this case of "BoardBendDef" type... no object is return

Here is the error message :

File "C:\AnsysMinerva\MetadataExtraction\tools\custom\ecad\edb_extractor.py", line 80, in extractAEDB
    edbStats = edb.get_statistics(True)
  File "C:\AnsysMinerva\MetadataExtraction\tools\VCollab\python-interface\py310\lib\site-packages\pyedb\dotnet\edb.py", line 3495, in get_statistics
    return self.modeler.get_layout_statistics(evaluate_area=compute_area, net_list=None)
  File "C:\AnsysMinerva\MetadataExtraction\tools\VCollab\python-interface\py310\lib\site-packages\pyedb\dotnet\edb_core\modeler.py", line 1319, in get_layout_statistics
    stat_model.num_traces = len(self._pedb.modeler.paths)
  File "C:\AnsysMinerva\MetadataExtraction\tools\VCollab\python-interface\py310\lib\site-packages\pyedb\dotnet\edb_core\modeler.py", line 229, in paths
    return [i for i in self.primitives if i.primitive_type == "path"]
  File "C:\AnsysMinerva\MetadataExtraction\tools\VCollab\python-interface\py310\lib\site-packages\pyedb\dotnet\edb_core\modeler.py", line 229, in <listcomp>
    return [i for i in self.primitives if i.primitive_type == "path"]
AttributeError: 'NoneType' object has no attribute 'primitive_type'

Steps To Reproduce

Call getStatistics error on a flexpcb board.

Which Operating System are you using?

Windows

Which Python version are you using?

3.10

Installed packages

annotated-types==0.7.0
ansys-pythonnet==3.1.0rc3
attrs==24.2.0
babel==2.16.0
beautifulsoup4==4.12.2
blosc2==2.4.0
Brotli==1.1.0
bs4==0.0.1
certifi==2024.8.30
cffi==1.17.1
chardet==5.2.0
charset-normalizer==3.3.2
clipboard==0.0.4
clr-loader==0.2.6
contourpy==1.1.0
cssselect2==0.7.0
cycler==0.11.0
Deprecated==1.2.14
docx==0.2.4
docxcompose==1.4.0
FMPy==0.3.21
fonttools==4.41.1
h5py==3.10.0
idna==3.10
inflate64==1.0.0
Jinja2==3.1.2
keyboard==0.13.5
kiwisolver==1.4.4
lark==1.2.2
llvmlite==0.40.0
ltspice==1.0.6
ltspice2svg==2021.6
lxml==4.9.2
MarkupSafe==2.1.3
matplotlib==3.9.2
msgpack==1.0.7
multivolumefile==0.2.3
ndindex==1.7
numba==0.57.0
numexpr==2.8.8
numpy==1.24.3
packaging==23.1
pandas==2.2.3
pdf2image==1.17.0
pdfkit==1.0.0
Pillow==10.0.0
Pint==0.22
platformdirs==4.3.6
plumbum==1.8.3
pooch==1.8.2
psutil==5.9.5
py-cpuinfo==9.0.0
py7zr==0.22.0
pybcj==1.0.2
pycparser==2.22
pycryptodomex==3.20.0
pydantic==2.7.4
pydantic_core==2.18.4
pyecma376-2==1.0.0
pyedb==0.30.0
pyfemm==0.1.3
PyLTSpice==4.0.6
pyparsing==3.0.9
pyperclip==1.9.0
pyppmd==1.1.0
python-dateutil==2.8.2
python-docx==1.1.2
pytz==2024.2
pyvista==0.44.1
pywin32==306
pyzstd==0.16.1
reportlab==3.6.11
requests==2.32.3
rpyc==5.3.1
Rtree==1.3.0
scikit-rf==1.3.0
scipy==1.11.2
scooby==0.10.0
six==1.16.0
soupsieve==2.4.1
spicelib==1.3.0
svglib==1.5.1
svgwrite==1.4.3
tables==3.9.2
texttable==1.7.0
tinycss2==1.3.0
tinyobjloader==2.0.0rc7
toml==0.10.2
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
vtk==9.2.6
webencodings==0.5.1
wrapt==1.16.0

@JDufrenneAnsys JDufrenneAnsys added the bug Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant