Skip to content

Add differential pairs #900

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

Merged
merged 43 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
96e74f0
Added set_differential_pair to hfss
Alberto-DM Feb 22, 2022
7d2dfb0
black checking
Alberto-DM Feb 22, 2022
cde8d4a
added set_differential_pairs in 3dLayout
Alberto-DM Feb 23, 2022
aa818ab
added save_diff_pairs_to_file in 3dLayout
Alberto-DM Feb 23, 2022
fc3a828
Added Circuit differential pairs
Alberto-DM Feb 23, 2022
17562f1
Added 3dlayout unit tests
Alberto-DM Feb 23, 2022
c11b623
fixed bug and completed unit tests
Alberto-DM Feb 24, 2022
4703f9a
fixed unit test for ironpython
Alberto-DM Feb 24, 2022
bc6621d
optimized close_design.
Alberto-DM Feb 24, 2022
be1e82b
optimized and fixed conftest.py
Alberto-DM Feb 25, 2022
ca2399f
black checking
Alberto-DM Feb 25, 2022
c4f9eb9
Merge branch 'main' into Enhancement/DifferentialPairs
Alberto-DM Feb 25, 2022
6090bf8
style check on test_40_3dlayout_edb.py
Alberto-DM Feb 25, 2022
305611b
restored run_unittests.py filter
Alberto-DM Feb 25, 2022
1fa0b64
fixing in multiparts.py for ironpython
Alberto-DM Feb 26, 2022
753fed0
style check
Alberto-DM Feb 26, 2022
7e32a96
Test Massimo
Feb 28, 2022
56d26e0
replaced corrupted Cassegrain.aedt unit test project
Alberto-DM Feb 28, 2022
3b05619
replaced corrupted Cassegrain.aedt unit test project
Alberto-DM Feb 28, 2022
6f5bfa8
fixes in unit test
Alberto-DM Feb 28, 2022
0d4a2e9
fixes in unit test
Alberto-DM Feb 28, 2022
741d809
Merge remote-tracking branch 'origin/Enhancement/DifferentialPairs' i…
Alberto-DM Feb 28, 2022
e896ba9
fixes in unit test
Alberto-DM Feb 28, 2022
0b7c28f
code clean up
Alberto-DM Feb 28, 2022
d3fa63a
black check
Alberto-DM Feb 28, 2022
4ff6174
fix to UT
Feb 28, 2022
c55f4c2
fix to UT
Feb 28, 2022
c1ce1e0
fixed line ending management in git repo
Alberto-DM Feb 28, 2022
ede60da
fix in hfss3dlayout.py
Alberto-DM Feb 28, 2022
a847832
trying to fix SBR unit test
Alberto-DM Feb 28, 2022
6e1463d
updated examples version
Alberto-DM Feb 28, 2022
c1d7983
fix to UT
Feb 28, 2022
0595d24
fix to UT
Feb 28, 2022
ff495ba
fix to UT
Feb 28, 2022
d9d6709
fix to UT
Feb 28, 2022
d3e387d
testing fix to UT
Alberto-DM Feb 28, 2022
9691669
testing fix to UT
Alberto-DM Feb 28, 2022
f7bb229
fix to UT
Mar 1, 2022
e2006fc
fix to UT
Mar 1, 2022
b32dd34
fix to UT
Mar 1, 2022
b85c2b7
fix to UT
Mar 1, 2022
7bbdaf0
testing fix to UT
Alberto-DM Mar 1, 2022
01d37a2
trigger CI
Alberto-DM Mar 1, 2022
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
22 changes: 19 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
*.jpg binary
*.png binary
*.gif binary

###############################################################################
# diff behavior for common document formats
Expand All @@ -61,3 +61,19 @@
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

###############################################################################
# behavior for Ansys files
#
# Ansys files are treated as binary by default.
###############################################################################
*.aedt binary
*.aedtz binary
edb.def binary
*.a3dcomp binary
*.emn binary
*.emp binary
*.acf text eol=lf
*.dat text eol=lf
*.stp binary
*.step binary
21 changes: 12 additions & 9 deletions _unittest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

# Import required modules
from pyaedt import Hfss
from pyaedt.application.Design import DesignCache
from pyaedt.generic.filesystem import Scratch

test_project_name = "test_primitives"
Expand Down Expand Up @@ -79,8 +78,8 @@
}


class BasisTest:
def setup_class(self, project_name=None, design_name=None, solution_type=None, application=None):
class BasisTest(object):
def my_setup(self, project_name=None, design_name=None, solution_type=None, application=None):

with Scratch(scratch_path) as self.local_scratch:
if project_name:
Expand All @@ -101,24 +100,28 @@ def setup_class(self, project_name=None, design_name=None, solution_type=None, a
specified_version=desktop_version,
)
self.project_name = self.aedtapp.project_name
self.cache = DesignCache(self.aedtapp)

def teardown_class(self):
def my_teardown(self):
self.aedtapp._desktop.ClearMessages("", "", 3)
if self.project_name in self.aedtapp.project_list:
self.aedtapp.close_project(name=self.project_name, saveproject=False)
self.local_scratch.remove()
gc.collect()
list_of_projects = list(self.aedtapp._desktop.GetProjectList())
for project in list_of_projects:
try:
self.aedtapp._desktop.CloseProject(project)
except: # pragma: no cover
pass
del self.aedtapp

def teardown(self):
"""
Could be redefined
"""
pass

def setup(self):
"""
Could be redefined
"""
pass


# Define desktopVersion explicitly since this is imported by other modules
Expand Down
Binary file modified _unittest/example_models/AMI_Example.aedb/edb.def
Binary file not shown.

This file was deleted.

Loading