Skip to content

Commit 2bce136

Browse files
authored
Merge pull request #355 from contrera/datacheck-change
Add DATACHECK directory to datacheck files search
2 parents 131ec3f + 0d90cf5 commit 2bce136

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/osa/scripts/sequencer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ def get_status_for_sequence(sequence, data_level) -> int:
238238
elif data_level == "DATACHECK":
239239
try:
240240
directory = options.directory / sequence.dl1_prod_id
241+
alternative_directory = destination_dir(concept="DATACHECK", create_dir=False, dl1_prod_id=sequence.dl1_prod_id)
241242
files = list(directory.glob(f"datacheck_dl1_LST-1*{sequence.run}*.h5"))
243+
files += list(alternative_directory.glob(f"datacheck_dl1_LST-1*{sequence.run}*.h5"))
244+
242245
except AttributeError:
243246
return 0
244247

0 commit comments

Comments
 (0)