Skip to content

REFACTOR: 12_post_processing refactoring #6051

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

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0619129
12_post_processing refactoring
nunesanderson Apr 15, 2025
d70ed27
functions refactoring - started
nunesanderson Apr 22, 2025
e5689f8
functions refactoring - in progress
nunesanderson Apr 23, 2025
43aef12
functions refactoring - in progress
nunesanderson Apr 24, 2025
e0108db
functions refactoring - finished
nunesanderson Apr 25, 2025
1e809a3
REFACTOR: Pathlib hfss.py (#6054)
jvela018 Apr 17, 2025
0dc5e12
DOCS: Update ``CONTRIBUTORS.md`` with the latest contributors (#6046)
pyansys-ci-bot Apr 18, 2025
a97222c
CHORE: Update pre-commit hooks and intend to fix auto update (#6058)
SMoraisAnsys Apr 18, 2025
5195a9b
BUILD(actions): bump codecov/codecov-action from 5.4.0 to 5.4.2 (#6062)
dependabot[bot] Apr 19, 2025
fbea48f
FEAT: populate named expressions and improve doc (#6027)
gmalinve Apr 21, 2025
a41e7b1
BUILD(actions): bump ansys/actions from 8 to 9 (#6039)
dependabot[bot] Apr 21, 2025
f4639ef
REFACTOR: Pathlib hfss3dlayout.py (#6057)
jvela018 Apr 21, 2025
23fef49
FIX: Adding missed properties (#6045)
ramin4667 Apr 21, 2025
afdd663
FIX: Exception error for multiple design (#5937)
ramin4667 Apr 21, 2025
1a5cf69
BUILD(actions): bump actions/download-artifact from 4.1.9 to 4.2.1 (#…
dependabot[bot] Apr 22, 2025
80666ba
BUILD(pip): update pytest-cov requirement from <6.1,>=4.0.0 to >=4.0.…
dependabot[bot] Apr 22, 2025
698e395
BUILD(actions): bump actions/setup-python from 5.4.0 to 5.5.0 (#6040)
dependabot[bot] Apr 22, 2025
4f0a70b
CHORE: update CHANGELOG for v0.15.6 (#6065)
pyansys-ci-bot Apr 22, 2025
53db29e
REFACTOR: Add examples folder and rework download logic (#6055)
SMoraisAnsys Apr 22, 2025
55117cd
FIX: fix extension manager + add missing icon fields distribution (#…
gmalinve Apr 24, 2025
b56143b
FIX: Return value of download_icepak_3d_component (#6071)
SMoraisAnsys Apr 24, 2025
59ad432
REFACTOR: Refactor virtual compliance class (#6073)
maxcapodi78 Apr 24, 2025
2ecd3d3
FIX: Return value of download_multiparts (#6075)
SMoraisAnsys Apr 24, 2025
70551b7
FEAT: improved pdf image management (#6076)
maxcapodi78 Apr 25, 2025
5dfc7d4
FEAT: Add assignment argument to plane wave (#6077)
Samuelopez-ansys Apr 25, 2025
c60e30f
chore: adding changelog file 6051.miscellaneous.md [dependabot-skip]
pyansys-ci-bot Apr 16, 2025
2f4de6a
Fixed pdf report issue
nunesanderson Apr 28, 2025
7aa3a60
Fixed method name
nunesanderson Apr 28, 2025
477625a
Fixed tmatrix
nunesanderson Apr 28, 2025
6b173ea
Fixed Maxwell export_results
nunesanderson Apr 30, 2025
2622e65
FIX: Speedup extension cutout (#6079)
maxcapodi78 Apr 25, 2025
98ef4b2
BUILD(actions): bump actions/setup-python from 5.5.0 to 5.6.0 (#6081)
dependabot[bot] Apr 26, 2025
294a04d
FIX: Only force download file if specified (#6083)
SMoraisAnsys Apr 27, 2025
e4658e7
BUILD(actions): bump actions/download-artifact from 4.2.1 to 4.3.0 (#…
dependabot[bot] Apr 27, 2025
bb99424
FIX: Fix locale error that happens after matplotlib plot is created (…
maxcapodi78 Apr 29, 2025
90de0ad
FIX: Remove dummy project fixture (#6091)
Samuelopez-ansys Apr 29, 2025
1033908
FEAT: args deprecation decorator (#6086)
gmalinve Apr 29, 2025
a4b176f
Merge branch 'main' into refactor/12_post_processing_fixed_pr
nunesanderson Apr 30, 2025
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/6051.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12_post_processing refactoring
4 changes: 4 additions & 0 deletions src/ansys/aedt/core/application/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,10 @@
excitations = self.oboundary.GetNumExcitations("SignalLine")
elif self.design_type == "Q3D Extractor":
excitations = self.oboundary.GetNumExcitations("Source")
elif self.design_type == "Maxwell 3D":
excitations = self.oboundary.GetNumExcitations()
elif self.design_type == "Maxwell 2D":
excitations = self.oboundary.GetNumExcitations()

Check warning on line 873 in src/ansys/aedt/core/application/analysis.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/application/analysis.py#L870-L873

Added lines #L870 - L873 were not covered by tests
elif self.design_type == "Circuit Design":
excitations = len(self.excitation_names)
else:
Expand Down
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/system/solvers/test_01_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
tol = 1e-12
test_project_name = "ANSYS-HSD_V1_0_test"
test_subfolder = "T01"
test_circuit_name = "Switching_Speed_FET_And_Diode_Solved"


@pytest.fixture(scope="class")
Expand All @@ -45,6 +46,13 @@ def aedtapp(add_app):
return app


@pytest.fixture()
def circuit_test(add_app):
app = add_app(project_name=test_circuit_name, design_name="Diode", application=Circuit, subfolder=test_subfolder)
yield app
app.close_project(save=False)


class TestClass(object):
def test_create_pdf(self, local_scratch):
report = AnsysReport(design_name="Design1", project_name="Coaxial")
Expand Down Expand Up @@ -73,6 +81,11 @@ def test_create_pdf(self, local_scratch):
report.add_toc()
assert os.path.exists(report.save_pdf(local_scratch.path, "my_firstpdf.pdf"))

def test_create_pdf_schematic(self, circuit_test):
report = AnsysReport()
report.create()
assert report.add_project_info(circuit_test)

def test_virtual_compliance(self, local_scratch, aedtapp):
template = os.path.join(
local_path, "example_models", test_subfolder, "compliance", "general_compliance_template.json"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/system/visualization/test_12_1_PostProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from tests.system.visualization.conftest import config

test_project_name = "coax_setup_solved_231"
m2d_trace_export_table = "m2d_trace_export_table"
m2d_trace_export_table = "m2d"


test_circuit_name = "Switching_Speed_FET_And_Diode"
Expand Down
Loading
Loading