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
e68b94e3
Commit
e68b94e3
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
valueErr if wrong bool key is given
parent
d09fdfd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!200
Feat/only offset
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cal_tools/cal_tools/agipdlib.py
+12
-1
12 additions, 1 deletion
cal_tools/cal_tools/agipdlib.py
with
12 additions
and
1 deletion
cal_tools/cal_tools/agipdlib.py
+
12
−
1
View file @
e68b94e3
...
...
@@ -157,7 +157,18 @@ class AgipdCorrections:
self
.
mg_bl_adjust
=
0
self
.
acquisition_rate
=
acquisition_rate
self
.
valid_indices
=
None
self
.
corr_bools
=
corr_bools
# check if given corr_bools are correct
tot_corr_bools
=
[
'
only_offset
'
,
'
pc_corr
'
,
'
ff_corr
'
,
'
adjust_mg_baseline
'
,
'
do_rel_gain
'
,
'
blc_noise
'
,
'
match_asics
'
,
'
corr_asic_diag
'
,
'
dont_zero_nans
'
,
'
dont_zero_orange
'
]
if
set
(
corr_bools
).
issubset
(
tot_corr_bools
):
self
.
corr_bools
=
corr_bools
else
:
raise
Exception
(
'
Correction Booleans: {} are not available!
'
.
format
(
list
(
set
(
corr_bools
)
-
set
(
tot_corr_bools
))))
def
get_iteration_range
(
self
):
"""
Returns a range expression over which to iterate in chunks
...
...
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