Skip to content

Commit f3ef590

Browse files
authored
Add differential pairs (#900)
* Added set_differential_pair to hfss * black checking * added set_differential_pairs in 3dLayout added load_diff_pairs_from_file in 3dlayout * added save_diff_pairs_to_file in 3dLayout * Added Circuit differential pairs Added HFSS unit tests * Added 3dlayout unit tests * fixed bug and completed unit tests * fixed unit test for ironpython * optimized close_design. fixed and improved unit test tear down * optimized and fixed conftest.py unit test now consistently use the BasisTest class * black checking * style check on test_40_3dlayout_edb.py * restored run_unittests.py filter * fixing in multiparts.py for ironpython * style check * Test Massimo * replaced corrupted Cassegrain.aedt unit test project * replaced corrupted Cassegrain.aedt unit test project * fixes in unit test * fixes in unit test * fixes in unit test * code clean up * black check * fix to UT * fix to UT * fixed line ending management in git repo * fix in hfss3dlayout.py * trying to fix SBR unit test * updated examples version * fix to UT * fix to UT * fix to UT * fix to UT * testing fix to UT * testing fix to UT * fix to UT * fix to UT * fix to UT * fix to UT * testing fix to UT * trigger CI Co-authored-by: maxcapodi78 <Shark78>
1 parent 15f928c commit f3ef590

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+22031
-23186
lines changed

.gitattributes

+19-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
#
4141
# image files are treated as binary by default.
4242
###############################################################################
43-
#*.jpg binary
44-
#*.png binary
45-
#*.gif binary
43+
*.jpg binary
44+
*.png binary
45+
*.gif binary
4646

4747
###############################################################################
4848
# diff behavior for common document formats
@@ -61,3 +61,19 @@
6161
#*.PDF diff=astextplain
6262
#*.rtf diff=astextplain
6363
#*.RTF diff=astextplain
64+
65+
###############################################################################
66+
# behavior for Ansys files
67+
#
68+
# Ansys files are treated as binary by default.
69+
###############################################################################
70+
*.aedt binary
71+
*.aedtz binary
72+
edb.def binary
73+
*.a3dcomp binary
74+
*.emn binary
75+
*.emp binary
76+
*.acf text eol=lf
77+
*.dat text eol=lf
78+
*.stp binary
79+
*.step binary

_unittest/conftest.py

+12-9
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
# Import required modules
4545
from pyaedt import Hfss
46-
from pyaedt.application.Design import DesignCache
4746
from pyaedt.generic.filesystem import Scratch
4847

4948
test_project_name = "test_primitives"
@@ -79,8 +78,8 @@
7978
}
8079

8180

82-
class BasisTest:
83-
def setup_class(self, project_name=None, design_name=None, solution_type=None, application=None):
81+
class BasisTest(object):
82+
def my_setup(self, project_name=None, design_name=None, solution_type=None, application=None):
8483

8584
with Scratch(scratch_path) as self.local_scratch:
8685
if project_name:
@@ -101,24 +100,28 @@ def setup_class(self, project_name=None, design_name=None, solution_type=None, a
101100
specified_version=desktop_version,
102101
)
103102
self.project_name = self.aedtapp.project_name
104-
self.cache = DesignCache(self.aedtapp)
105103

106-
def teardown_class(self):
104+
def my_teardown(self):
107105
self.aedtapp._desktop.ClearMessages("", "", 3)
108-
if self.project_name in self.aedtapp.project_list:
109-
self.aedtapp.close_project(name=self.project_name, saveproject=False)
110-
self.local_scratch.remove()
111-
gc.collect()
106+
list_of_projects = list(self.aedtapp._desktop.GetProjectList())
107+
for project in list_of_projects:
108+
try:
109+
self.aedtapp._desktop.CloseProject(project)
110+
except: # pragma: no cover
111+
pass
112+
del self.aedtapp
112113

113114
def teardown(self):
114115
"""
115116
Could be redefined
116117
"""
118+
pass
117119

118120
def setup(self):
119121
"""
120122
Could be redefined
121123
"""
124+
pass
122125

123126

124127
# Define desktopVersion explicitly since this is imported by other modules
Binary file not shown.

_unittest/example_models/AMI_Example.aedb/stride/model.index

-2
This file was deleted.

0 commit comments

Comments
 (0)