ansys/pyaedt

pyAEDT circuit postprocessing get_solution_data() - "PyAEDT WARNING: Solution Data failed to load."

Opened this issue · 0 comments

Before submitting the issue

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

Description of the bug

Hello,

I am scripting DDR circuity compliance in pyAEDT as AEDT virtual compliance tool is not supported anymore.

I have a script that runs the transient simulation AEDT Circuit (IBIS, S-parameters, ..) which is run, and waveform saved. If I try to create result report in the same script, I can get the data with:

report = cir.post.create_report("V(dsmem_DQ_A_03)", domain="Time")
solutions = cir.post.get_solution_data(domain="Time")

si = report.get_solution_data()
t = si.primary_sweep_values
y = si.data_magnitude()

However, if I this design is closed and open again, the data traces are not available with the same approach:

In [16]: report = cir.post.create_report("V(dsmem_DQ_A_03)", domain="Time")
In [18]: solutions = cir.post.get_solution_data(domain="Time")
PyAEDT WARNING: Solution Data failed to load. Check solution, context or expression.
PyAEDT WARNING: No Data Available. Check inputs

I see that the report is created in AEDT GUI, but plot displays nothing. If double-click the plot, the data traces are listed. The correct signal is preselected. If I click directly ‘Apply Trace’ the trace appears in the plot. Even after re-issuing the solutions = cir.post.get_solution_data(domain="Time") command, it produces the same error.

I also tried this approach ([https://github.com/ansys/pyaedt/discussions/4949](#4949)), but I got this error:

cir = pyaedt.Circuit(specified_version="2024.1",projectname="Project_P2U")
Returning found desktop with PID 22384!
PyAEDT INFO: Project Project_P2U set to active.
PyAEDT INFO: Active Design set to Circuit Design_QFG
PyAEDT INFO: Aedt Objects correctly read
PyAEDT INFO: aedt file load time 0.7363317012786865

In [42]: setups = cir.existing_analysis_sweeps

In [43]: r = cir.post.reports_by_caPyAEDT INFO: ModelerCircuit class has been initialized! Elapsed time: 0m 0sec
PyAEDT INFO: ModelerNexxim class has been initialized!
In [44]: r = cir.post.reports_by_category.standard('V(dsmem_CA_B_1)',setup=setups[0])
PyAEDT ERROR: TYPE ERROR on standard
PyAEDT ERROR: Reports.standard() got an unexpected keyword argument 'setup'
PyAEDT ERROR:   File "<ipython-input-44-9f7218b28439>", line 1, in <module>
PyAEDT ERROR:     r = cir.post.reports_by_category.standard('V(dsmem_CA_B_1)',setup=setups[0])
PyAEDT ERROR: Last Electronics Desktop Message - [error] script macro error: abnormal script termination. (03:52:58 pm  sep 24, 2024)

PyAEDT ERROR: Method arguments:
PyAEDT ERROR:     expressions = V(dsmem_CA_B_1)
PyAEDT ERROR:     setup = TransientRun
PyAEDT ERROR: Check Online documentation on: https://aedt.docs.pyansys.com/version/stable/search.html?q=standard

Can you guide me how to extract the data traces from reopened project?

Thanks,
Michael

Steps To Reproduce

see above

Which Operating System are you using?

Windows

Which Python version are you using?

3.11

Installed packages

ansys-pythonnet==3.1.0rc3
attrs==23.2.0
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
click-plugins==1.1.1
cligj==0.7.2
clr-loader==0.2.6
colorama==0.4.6
contourpy==1.2.0
cycler==0.12.1
Cython==3.0.11
defusedxml==0.7.1
et-xmlfile==1.1.0
eyediagram==0.1.1.dev0
fiona==1.9.6
fonttools==4.49.0
fpdf2==2.7.8
geopandas==0.14.3
idna==3.6
imageio==2.34.0
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
kiwisolver==1.4.5
matplotlib==3.8.3
networkx==3.2.1
numpy==1.26.4
openpyxl==3.1.2
osmnx==1.9.1
packaging==24.0
pandas==2.1.1
pillow==10.2.0
platformdirs==4.2.0
plumbum==1.8.2
pooch==1.8.1
psutil==5.9.8
pyaedt==0.8.2
pycparser==2.21
pyedb==0.5.2
pyparsing==3.1.2
pyproj==3.6.1
python-dateutil==2.9.0.post0
pytomlpp==1.0.13
pytz==2024.1
pyvista==0.43.3
pywin32==306
referencing==0.33.0
requests==2.31.0
rpds-py==0.18.0
rpyc==6.0.0
scikit-rf==0.31.0
scipy==1.12.0
scooby==0.9.2
shapely==2.0.3
six==1.16.0
SRTM.py==0.3.7
tzdata==2024.1
urllib3==2.2.1
utm==0.7.0
vtk==9.2.6