Skip to content
Snippets Groups Projects
Commit 7d38d261 authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

disable missing trains warning for hRIXS data

parent 81d209b4
No related branches found
No related tags found
1 merge request!263Adds warning if data rate < 95% in load()
Pipeline #110863 passed
This diff is collapsed.
......@@ -212,6 +212,8 @@ def load(proposalNB=None, runNB=None,
data_arrays.append(arr)
# Check missing trains
for arr in data_arrays:
if 'hRIXS' in arr.name:
continue
rate = arr.sizes["trainId"] / len(run.train_ids)
if rate < 0.95:
log.warning(f'{arr.name}: only {rate*100:.1f}% of trains '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment