Skip to content
Snippets Groups Projects
Commit df5a944f authored by Karim Ahmed's avatar Karim Ahmed
Browse files

atol 100

parent 840be17a
No related branches found
No related tags found
1 merge request!729[EPIX100][DARK][CORRECT] Use as singe value for the temp
...@@ -22,6 +22,12 @@ class epix100Ctrl(): ...@@ -22,6 +22,12 @@ class epix100Ctrl():
self.ctrl_src, 'expTime.value'].as_single_value(reduce_by='first') self.ctrl_src, 'expTime.value'].as_single_value(reduce_by='first')
def get_temprature(self): def get_temprature(self):
"""Get temperature value from CONTROL.
Temprature is stored in Celsius/100 units.
Therefore, we are dividing by 100 and
there is an absolute tolerance of 100.
atol=100 is a 1 degree variation tolerance.
"""
return self.run_dc[ return self.run_dc[
self.instrument_src, 'data.backTemp'].as_single_value( self.instrument_src, 'data.backTemp'].as_single_value(
reduce_by='mean', rtol=1) / 100 reduce_by='mean', atol=100) / 100
\ No newline at end of file
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