diff --git a/test/algorithm_test/AdjustedAlgorithm_test.py b/test/algorithm_test/AdjustedAlgorithm_test.py index 220d498c6f1bf6a65e59243523cd73789b6dc95e..d5f0b9d89ffde765495d0ae80cccb9029b3d550a 100644 --- a/test/algorithm_test/AdjustedAlgorithm_test.py +++ b/test/algorithm_test/AdjustedAlgorithm_test.py @@ -54,7 +54,9 @@ def test_process_XYZF_AdjustedMatrix(): [0, 0, 0, 1], ], pier_correction=-22, - ) + ), + inchannels=["H", "E", "Z", "F"], + outchannels=["X", "Y", "Z", "F"], ) # load boulder Jan 16 files from /etc/ directory @@ -114,7 +116,11 @@ def test_process_XYZF_statefile(): Uses statefile to generate AdjustedMatrix """ # load adjusted data transform matrix and pier correction - a = AdjustedAlgorithm(statefile="etc/adjusted/adjbou_state_.json") + a = AdjustedAlgorithm( + statefile="etc/adjusted/adjbou_state_.json", + inchannels=["H", "E", "Z", "F"], + outchannels=["X", "Y", "Z", "F"], + ) # load boulder Jan 16 files from /etc/ directory with open("etc/adjusted/BOU201601vmin.min") as f: @@ -167,11 +173,12 @@ def test_process_no_statefile(): Uses default AdjustedMatrix with identity transform """ # initialize adjusted algorithm with no statefile - a = AdjustedAlgorithm() + a = AdjustedAlgorithm(inchannels=["H", "E", "Z", "F"]) # load boulder Jan 16 files from /etc/ directory with open("etc/adjusted/BOU201601vmin.min") as f: raw = i2.IAGA2002Factory().parse_string(f.read()) # process hezf (raw) channels with identity transform + print(a.matrix) adjusted = a.process(raw) for i in range(len(adjusted)): assert_array_equal(adjusted[i].data, raw[i].data)