diff --git a/tests/system/visualization/example_models/T44/_causality.txt b/tests/system/visualization/example_models/T44/_causality.txt deleted file mode 100644 index fc85e43aa6c..00000000000 --- a/tests/system/visualization/example_models/T44/_causality.txt +++ /dev/null @@ -1,10 +0,0 @@ -8 8 -0 -1 0 0.126414 0 0 0 0 --1 0 0.126414 0 0 0 0 0 -0 0.126414 0 -1 0 0 0 0 -0.126414 0 -1 0 0 0 0 0 -0 0 0 0 0 -1 0 0.126414 -0 0 0 0 -1 0 0.126414 0 -0 0 0 0 0 0.126414 0 -1 -0 0 0 0 0.126414 0 -1 0 - diff --git a/tests/system/visualization/example_models/T44/_fwslog.txt b/tests/system/visualization/example_models/T44/_fwslog.txt deleted file mode 100644 index dd6e366cc17..00000000000 --- a/tests/system/visualization/example_models/T44/_fwslog.txt +++ /dev/null @@ -1,17 +0,0 @@ -genequiv:progress 0: -genequiv:message Reading input data: -genequiv:message Checking passivity. -genequiv:message Input data is passive for all frequencies. -genequiv:message Checking causality. Reconstruction error tolerance: 0.01 -genequiv:progress 5: -genequiv:message Fastfit does not support fit by entry!: -genequiv:progress 5: -genequiv:message Switching to rational fit! : -genequiv:progress 5: -genequiv:message starting: -genequiv:progress 95: -genequiv:message ending: -genequiv:message Causality check is inconclusive: Please add more frequency samples. - -genequiv:progress 100: -genequiv:message Exiting with return code 0: diff --git a/tests/system/visualization/test_44_TouchstoneParser.py b/tests/system/visualization/test_44_TouchstoneParser.py index 59a7d533be5..facede34036 100644 --- a/tests/system/visualization/test_44_TouchstoneParser.py +++ b/tests/system/visualization/test_44_TouchstoneParser.py @@ -24,6 +24,7 @@ import logging import os +import shutil from ansys.aedt.core import Hfss3dLayout from ansys.aedt.core.visualization.advanced.touchstone_parser import TouchstoneData @@ -60,20 +61,26 @@ def test_01_get_touchstone_data(self): assert ts_data.get_next_xtalk_index() assert ts_data.get_fext_xtalk_index_from_prefix("diff1", "diff2") - def test_02_read_ts_file(self): + def test_02_read_ts_file(self, local_scratch): - ts1 = TouchstoneData(touchstone_file=os.path.join(test_T44_dir, "port_order_1234.s8p")) + sp = os.path.join(local_scratch.path, "port_order_1234.s8p") + shutil.copy(os.path.join(test_T44_dir, "port_order_1234.s8p"), sp) + + ts1 = TouchstoneData(touchstone_file=sp) assert ts1.get_mixed_mode_touchstone_data() - ts2 = TouchstoneData(touchstone_file=os.path.join(test_T44_dir, "port_order_1324.s8p")) + ts2 = TouchstoneData(touchstone_file=sp) 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) - def test_03_check_touchstone_file(self): + def test_03_check_touchstone_file(self, local_scratch): from ansys.aedt.core.visualization.advanced.touchstone_parser import check_touchstone_files - check = check_touchstone_files(input_dir=test_T44_dir) + input_dir = os.path.join(local_scratch.path, "touchstone_files") + local_scratch.copyfolder(test_T44_dir, input_dir) + + check = check_touchstone_files(input_dir=input_dir) assert check for k, v in check.items(): if v and v[0] == "passivity":