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
2b6c6e2a
Commit
2b6c6e2a
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
convert min and max_pulses
parent
d75cc468
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!240
hist_pulse must be int
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cal_tools/cal_tools/agipdlib.py
+4
-4
4 additions, 4 deletions
cal_tools/cal_tools/agipdlib.py
with
4 additions
and
4 deletions
cal_tools/cal_tools/agipdlib.py
+
4
−
4
View file @
2b6c6e2a
...
...
@@ -125,8 +125,8 @@ class AgipdCorrections:
# avoid list(range(*[0]]))
self
.
pulses_lst
=
list
(
range
(
*
max_pulses
))
\
if
not
(
len
(
max_pulses
)
==
1
and
max_pulses
[
0
]
==
0
)
else
max_pulses
#noqa
self
.
min_pulse
=
self
.
pulses_lst
[
0
]
self
.
max_pulse
=
self
.
pulses_lst
[
-
1
]
self
.
min_pulse
=
int
(
self
.
pulses_lst
[
0
]
)
self
.
max_pulse
=
int
(
self
.
pulses_lst
[
-
1
]
)
self
.
max_cells
=
max_cells
self
.
hist_pulses
=
0
self
.
hists_signal_low
=
0
...
...
@@ -1048,9 +1048,9 @@ class AgipdCorrections:
# avoid 0 hist_pulses, otherwise histogram plot will fail
if
self
.
max_pulse
==
0
:
self
.
hist_pulses
=
int
(
self
.
max_pulse
+
1
)
self
.
hist_pulses
=
self
.
max_pulse
+
1
else
:
self
.
hist_pulses
=
int
(
self
.
max_pulse
)
self
.
hist_pulses
=
self
.
max_pulse
bins
=
(
self
.
bins_signal_low_range
,
self
.
hist_pulses
)
rnge
=
[[
-
50
,
1000
],
[
self
.
min_pulse
,
...
...
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