Skip to content
Snippets Groups Projects
Commit b895f022 authored by Loïc Le Guyader's avatar Loïc Le Guyader
Browse files

Use extra-data-validate

parent 0771c6fc
No related branches found
No related tags found
1 merge request!76Extra data and xfel kernel
...@@ -421,7 +421,7 @@ def load(fields, runNB, proposalNB, subFolder='raw', display=False, validate=Fal ...@@ -421,7 +421,7 @@ def load(fields, runNB, proposalNB, subFolder='raw', display=False, validate=Fal
subFolder: (str) sub-folder from which to load the data. Use 'raw' for raw subFolder: (str) sub-folder from which to load the data. Use 'raw' for raw
data or 'proc' for processed data. data or 'proc' for processed data.
display: (bool) whether to show the run.info or not display: (bool) whether to show the run.info or not
validate: (bool) whether to run karabo-data-validate or not validate: (bool) whether to run extra-data-validate or not
subset: a subset of train that can be load with by_index[:5] for the subset: a subset of train that can be load with by_index[:5] for the
first 5 trains first 5 trains
rois: a dictionnary of mnemonics with a list of rois definition and the desired rois: a dictionnary of mnemonics with a list of rois definition and the desired
...@@ -444,7 +444,7 @@ def load(fields, runNB, proposalNB, subFolder='raw', display=False, validate=Fal ...@@ -444,7 +444,7 @@ def load(fields, runNB, proposalNB, subFolder='raw', display=False, validate=Fal
run = RunDirectory(runFolder).select_trains(subset) run = RunDirectory(runFolder).select_trains(subset)
if validate: if validate:
get_ipython().system('karabo-data-validate ' + runFolder) get_ipython().system('extra-data-validate ' + runFolder)
if display: if display:
print('Loading data from {}'.format(runFolder)) print('Loading data from {}'.format(runFolder))
run.info() run.info()
......
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