Skip to content
Snippets Groups Projects
Commit ee2496ef authored by Cyril Danilevski's avatar Cyril Danilevski :scooter:
Browse files

[AGIPD][CORRECT] Correctly set array of ones when no PC data available

parent 02d1e4bb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment