[AGIPD] as_single_value instead of get_run_value
Using CONTROL
source to read AGIPD conditions using as_single_value
.
Description
Replacing get_run_value
with as_single_value
to read all conditions, except the bias_voltage.
To unify the method for reading the parameter conditions and not fail silently if there is a bug in the CONTROL values.
Except for the bias_voltage, which is known of wrong CONTROL values for AGIPD@HED.
How Has This Been Tested?
Relevant Documents (optional)
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Merge request reports
Activity
mentioned in merge request !651 (merged)
- Resolved by Karim Ahmed
So I assume it could happen that
KeyData.as_single_value
throwsValueError
s?It's kind of reverting to the old behavior of just taking the first value (in a faster way), but reasonable if it causes problems. The danger is that misconfiguration during a run will be silent again.
added 1 commit
- 247b8695 - change from get_run_value to as_single_value
mentioned in merge request !647 (merged)
- Resolved by Karim Ahmed
I'm confused, I'm just checking the MRs and:
- Title suggests
as_single_value
is used - Code uses
as_single_value
- Desecriptions reads:
Using
RUN
source instead ofCONTROL
source to read AGIPD conditions.Replacing
as_single_value
withget_run_value
to read conditions fromRUN
source. - Title suggests
added Waiting for review label
- Resolved by Karim Ahmed
237 236 'integrationTime.value' in self.run_dc.keys_for_source( 238 237 self.ctrl_src) 239 238 ): 240 return int(self.run_dc.get_run_value( 241 self.ctrl_src, 'integrationTime.value')) 239 return int(self.run_dc[ 240 self.ctrl_src, 'integrationTime.value'].as_single_value()) changed this line in version 3 of the diff
added 1 commit
- cb97275d - no need to convert bias_voltage value to int, Also remove unneeded .value for keys
added 58 commits
-
cb97275d...d09e3f59 - 55 commits from branch
master
- 3625b297 - get_run_value instead of as_single_value
- 27d82dc7 - change from get_run_value to as_single_value
- bf6c42d5 - no need to convert bias_voltage value to int, Also remove unneeded .value for keys
Toggle commit list-
cb97275d...d09e3f59 - 55 commits from branch
added 1 commit
- 2b656a0b - no need to convert bias_voltage value to int, Also remove unneeded .value for keys
mentioned in commit f8321fe9