Draft: use as_single_value for temperature
This MR is related to https://git.xfel.eu/detectors/pycalibration/-/issues/62
Description
Adding a tolerance for backTemp value which is used as a condition for constant. This will help in using as_single_Value
and
avoid any unexpected and hidden issues.
How Has This Been Tested?
Relevant Documents (optional)
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
-
To confirm that the shape change for backTemp is expected
Reviewers
Merge request reports
Activity
Yes, I see. At some point there were changes in the shape of some output ePix100 output variables, I have no idea why, it was actually before I joined. I've had similar trouble getting the sensor size from the .h5 files, which changed from [768,708,1] to [768,708] at some point. I think there's not much to do besides going around this. One idea would be to use .item() after as_single_value, which gives the same result in both cases:
hmmm, this MR was not supposed to be merged. I would assume the button was clicked by mistake.
What is interesting, is that I don't see the changes in master.
Edited by Karim Ahmed