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

Facing issue while creating a Data table(plot_type) for Fields Report #5448

Open
2 tasks done
Nitesh-0410 opened this issue Nov 19, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Nitesh-0410
Copy link

Before submitting the issue

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

Description of the bug

Currently i am using following method to create the Field Plot

Connect to AEDT

oH3D = Hfss3dLayout(filepaths['Hfss3dLayout'], specified_version=release, new_desktop_session=False)

Create the report

try:
    print("Creating report...")
    report = oH3D.post.reports_by_category.fields("ComplexMag_Jsurf","Overview : Test", "Layer 2")
    report.create()
    print(f"Report created successfully: {report}")
except Exception as e:
    print(f"Error creating report: {e}") 

After running the code i am getting an error

Creating report...
PyAEDT INFO: Loading Modeler.
PyAEDT INFO: Modeler loaded.
PyAEDT INFO: EDB loaded.
PyAEDT INFO: Layers loaded.
PyAEDT INFO: Primitives loaded.
PyAEDT INFO: Modeler class has been initialized! Elapsed time: 0m 0sec
PyAEDT INFO: PostProcessor class has been initialized! Elapsed time: 0m 0sec
PyAEDT INFO: Post class has been initialized! Elapsed time: 0m 0sec
PyAEDT ERROR: **************************************************************
PyAEDT ERROR: File "e:/Temp/Chodankn/HotLoop/Script/J_results.py", line 170, in
PyAEDT ERROR: Main()
PyAEDT ERROR: File "e:/Temp/Chodankn/HotLoop/Script/J_results.py", line 143, in Main
PyAEDT ERROR: report.create()
PyAEDT ERROR: File "C:\Program Files\Python38\lib\site-packages\pyaedt\modules\report_templates.py", line 1093, in create
PyAEDT ERROR: self._post.oreportsetup.CreateReport(
PyAEDT ERROR: File "", line 3, in CreateReport
PyAEDT ERROR: (-2147352567, 'exception occurred.', (0, none, none, none, 0, -2147024382), none) on create
PyAEDT ERROR: Last Electronics Desktop Message - [error] script macro error: abnormal script termination. (11:18:14 am nov 19, 2024
)
PyAEDT ERROR: Check Online documentation on: https://aedt.docs.pyansys.com/version/stable/search.html?q=create
PyAEDT ERROR: **************************************************************
Report created successfully: <pyaedt.modules.report_templates.Fields object at 0x000002053B946970>
PyAEDT INFO: Script finished successfully!

Error Msg in AEDT
The variable 'Distance' doesn't have an associated sweep and is excluded from the definition of trace

Image

Steps To Reproduce

Image of Manual Steps used to create the Fields report.
Image

Image of the recorded Ironpython Script
Image

Which Operating System are you using?

Windows

Which Python version are you using?

3.8

Installed packages

aiohttp==3.8.5
aiosignal==1.3.1
annotated-types==0.6.0
ansys-api-sherlock==0.1.20
ansys-dpf-core==0.9.0
ansys-dpf-gate==0.4.1
ansys-dpf-gatebin==0.4.1
ansys-dpf-post==0.5.0
ansys-grpc-dpf==0.8.1
ansys-pythonnet==3.1.0rc3
ansys-sherlock-core==0.3.0
async-timeout==4.0.3
attrs==23.1.0
backports.zoneinfo==0.2.1
beautifulsoup4==4.12.2
bleach==6.0.0
cachetools==5.3.1
certifi==2023.7.22
cffi==1.15.1
charset-normalizer==3.2.0
clr-loader==0.2.6
colorama==0.4.6
contourpy==1.1.0
cssutils==2.7.1
cycler==0.11.0
dataframe-image==0.2.1
defusedxml==0.7.1
et-xmlfile==1.1.0
fastjsonschema==2.18.0
fonttools==4.42.1
fpdf2==2.7.8
frozenlist==1.4.0
fuzzywuzzy==0.18.0
google-api-core==2.11.1
google-api-python-client==2.98.0
google-auth==2.23.0
google-auth-httplib2==0.1.1
googleapis-common-protos==1.60.0
grpcio==1.58.0
html2image==2.0.4.3
httplib2==0.22.0
idna==3.4
importlib-metadata==4.13.0
importlib-resources==6.0.1
Jinja2==3.1.2
joblib==1.4.2
Js2Py==0.74
jsonschema==4.19.0
jsonschema-specifications==2023.7.1
jupyter_client==8.3.1
jupyter_core==5.3.1
jupyterlab-pygments==0.2.2
kiwisolver==1.4.5
Levenshtein==0.21.1
lxml==4.9.3
MarkupSafe==2.1.3
matplotlib==3.7.3
mistune==3.0.1
multidict==6.0.4
nbclient==0.8.0
nbconvert==7.8.0
nbformat==5.9.2
numpy==1.24.4
opencv-python==4.8.0.76
openpyxl==3.1.2
packaging==23.1
pandas==2.0.3
pandocfilters==1.5.0
Pillow==10.0.0
pkgutil_resolve_name==1.3.10
platformdirs==3.10.0
plumbum==1.8.2
pooch==1.7.0
protobuf==3.20.3
psutil==5.9.5
pyaedt==0.8.8
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.21
pydantic==2.6.4
pydantic_core==2.16.3
pyedb==0.7.1
Pygments==2.16.1
pyjsparser==2.7.1
pyodbc==4.0.39
pyparsing==3.1.1
python-dateutil==2.8.2
python-Levenshtein==0.21.1
python-pptx==1.0.2
pythonnet==3.0.2
pytomlpp==1.0.13
pytz==2023.3.post1
pyvista==0.42.1
pywin32==306
pyzmq==25.1.1
rapidfuzz==3.3.0
referencing==0.30.2
requests==2.31.0
rpds-py==0.10.2
rpyc==6.0.0
rsa==4.9
scikit-learn==1.3.2
scipy==1.10.1
scooby==0.7.2
six==1.16.0
soupsieve==2.5
threadpoolctl==3.5.0
tinycss2==1.2.1
toml==0.10.2
tornado==6.3.3
tqdm==4.66.1
traitlets==5.9.0
typing_extensions==4.11.0
tzdata==2023.3
tzlocal==5.2
uritemplate==4.1.1
urllib3==1.26.16
vtk==9.2.6
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.6.3
wrapt==1.12.1
wslink==1.8.2
xlrd==2.0.1
XlsxWriter==3.2.0
xlwings==0.30.4
xlwt==1.3.0
yarl==1.8.1
zipp==3.4.1

@Nitesh-0410 Nitesh-0410 added the bug Something isn't working label Nov 19, 2024
@jvela018
Copy link
Contributor

@Nitesh-0410 ,

Do you get the same error when using

 try:
    print("Creating report...")
    report = oH3D.post.reports_by_category.fields("ComplexMag_Jvol","Overview : Test", "Layer 2")
    report.create()
    print(f"Report created successfully: {report}")
except Exception as e:
    print(f"Error creating report: {e}") 

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

2 participants