Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToolBox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
ToolBox
Commits
b895f022
Commit
b895f022
authored
4 years ago
by
Loïc Le Guyader
Browse files
Options
Downloads
Patches
Plain Diff
Use extra-data-validate
parent
0771c6fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!76
Extra data and xfel kernel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Load.py
+2
-2
2 additions, 2 deletions
Load.py
with
2 additions
and
2 deletions
Load.py
+
2
−
2
View file @
b895f022
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment