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
ee2496ef
Commit
ee2496ef
authored
3 years ago
by
Cyril Danilevski
Browse files
Options
Downloads
Patches
Plain Diff
[AGIPD][CORRECT] Correctly set array of ones when no PC data available
parent
02d1e4bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/agipdlib.py
+2
-2
2 additions, 2 deletions
src/cal_tools/agipdlib.py
with
2 additions
and
2 deletions
src/cal_tools/agipdlib.py
+
2
−
2
View file @
ee2496ef
...
...
@@ -1228,8 +1228,8 @@ class AgipdCorrections:
rel_gain
[...,
1
]
=
rel_gain
[...,
0
]
*
frac_high_med_pix
rel_gain
[...,
2
]
=
rel_gain
[...,
1
]
*
4.48
else
:
# Intialize with fake calculated parameters of Ones
md_additional_offset
=
rel_gain
# Intialize with fake calculated parameters of Ones
and Zeros
md_additional_offset
=
np
.
zeros
((
128
,
512
,
self
.
max_cells
),
np
.
float32
)
frac_high_med
=
np
.
ones
((
self
.
max_cells
,),
np
.
float32
)
self
.
md_additional_offset
[
module_idx
][...]
=
md_additional_offset
.
transpose
()[...]
# noqa
...
...
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