Skip to content

Commit

Permalink
Fix touchstone deepcopy issue (#3892)
Browse files Browse the repository at this point in the history
* Fix touchstone deepcopy issue

* Shallow copy
  • Loading branch information
Samuelopez-ansys authored Nov 21, 2023
1 parent ae2591a commit 611651b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _unittest/test_44_TouchstoneParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_02_read_ts_file(self):
ts1 = TouchstoneData(touchstone_file=os.path.join(test_T44_dir, "port_order_1234.s8p"))
assert ts1.get_mixed_mode_touchstone_data()
ts2 = TouchstoneData(touchstone_file=os.path.join(test_T44_dir, "port_order_1324.s8p"))
assert ts1.get_mixed_mode_touchstone_data(port_ordering="1324")
assert ts2.get_mixed_mode_touchstone_data(port_ordering="1324")

assert ts1.plot_insertion_losses(plot=False)
assert ts1.get_worst_curve(curve_list=ts1.get_return_loss_index(), plot=False)
2 changes: 1 addition & 1 deletion pyaedt/generic/touchstone_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from copy import deepcopy as copy
from copy import copy
import itertools
import os
import re
Expand Down

0 comments on commit 611651b

Please sign in to comment.