Skip to content

Commit 3721b60

Browse files
committed
Update filter tests
1 parent eab35a1 commit 3721b60

File tree

73 files changed

+96
-15
lines changed

Some content is hidden

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

73 files changed

+96
-15
lines changed

tests/aux_functions.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,19 @@ def plot(inst, statistic_mode, network_type, plot_type, plot_options=[]):
173173

174174
def check_filter_data(inst, statistic_mode, network_type, filter):
175175

176-
orig_path = f'tests/reference/{network_type}/{statistic_mode}/data/data.npy'
177-
filter_path = f'tests/reference/{network_type}/{statistic_mode}/data/data_{filter}.npy'
178-
179176
# Check filtered data
177+
filter_path = f'tests/reference/{network_type}/{statistic_mode}/data/data_{filter}.npy'
180178
read_data(inst, filter_path)
181179

180+
# Reset filter and check original data
181+
inst.reset(initialise=True)
182+
orig_path = f'tests/reference/{network_type}/{statistic_mode}/data/data.npy'
183+
read_data(inst, orig_path)
184+
182185
# Check filtered data is different from original data
183186
orig_output = np.load(orig_path, allow_pickle=True)
184187
filter_output = np.load(filter_path, allow_pickle=True)
185188
try:
186189
assert (not np.allclose(orig_output, filter_output, equal_nan=True))
187190
except ValueError as e:
188-
assert True
189-
190-
# Reset filter and check original data
191-
inst.reset(initialise=True)
192-
read_data(inst, orig_path)
191+
assert True
-1.8 MB
Binary file not shown.
205 KB
Binary file not shown.
4.28 MB
Binary file not shown.
4.28 MB
Binary file not shown.
4.21 MB
Binary file not shown.
4.14 MB
Binary file not shown.
4.28 MB
Binary file not shown.
4.28 MB
Binary file not shown.

0 commit comments

Comments
 (0)