Skip to content

Commit 132274b

Browse files
committed
readd ref_output.txt exception
1 parent d8419a9 commit 132274b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/pynxtools/testing/nexus_conversion.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ def __init__(
8484
Pytest fixture variable, used to capture the log messages during the test.
8585
ref_log_path : str
8686
Full path string to the reference log file generated from the same
87-
set of input files in files_or_dir. This can also be parsed automatically if files_or_dir
88-
is the full path string to the example data directory and there is only one reference
89-
log file.
87+
set of input files in files_or_dir. This can also be parsed automatically if
88+
files_or_dir is the full path string to the example data directory and there
89+
is only one reference log file.
9090
kwargs : dict[str, Any]
9191
Any additional keyword arguments to be passed to the readers' read function.
9292
"""
@@ -127,7 +127,9 @@ def convert_to_nexus(
127127
assert self.ref_log_path, "Reference nexus .log file not found"
128128

129129
input_files = [
130-
file for file in example_files if not file.endswith((".nxs", ".log"))
130+
file
131+
for file in example_files
132+
if not file.endswith((".nxs", "ref_output.txt", ".log"))
131133
]
132134

133135
assert (

0 commit comments

Comments
 (0)