Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Commits
e15926e6
Commit
e15926e6
authored
1 year ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
fix warning and docstring
parent
386e6861
Branches
feat/reorder_dark_runs_jf
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!900
[Jungfrau][DARK] Validate and reorder dark runs before processing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/jungfraulib.py
+3
-2
3 additions, 2 deletions
src/cal_tools/jungfraulib.py
with
3 additions
and
2 deletions
src/cal_tools/jungfraulib.py
+
3
−
2
View file @
e15926e6
...
...
@@ -153,7 +153,7 @@ def sort_runs_by_gain(
Args:
raw_folder (str): RAW folder for the validated dark runs.
runs (list
, optional
): [High run, Medium run, Low run].
runs (list): [High run, Medium run, Low run].
ctrl_src (str): Control source path for slow data.
modes_order (dict): Gain modes order to sort the runs by.
expected_run_order (list):Expected dark runs order to process.
...
...
@@ -200,7 +200,8 @@ def sort_runs_by_gain(
if
modes
==
legacy_adaptive
:
warning
(
f
"
run.settings for medium and low gain runs
"
f
"
are wrong
{
modes
[
1
:
]
}
. This is an expected
"
f
"
bug for old raw data. Setting gain_mode to
{
gm
}
.
"
)
f
"
bug for old raw data.
"
"
Assuming this is an adaptive gain runs.
"
)
elif
not
modes
in
expected_run_order
:
raise
ValueError
(
"
Wrong dark runs are given.
"
f
"
The given three runs are
{
runs
}
with
"
...
...
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