Skip to content
Snippets Groups Projects

Simplify reduction operation implementations and error handling

Merged Philipp Schmidt requested to merge feat/error-handling into feat/compress-keys
2 files
+ 14
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -199,7 +199,8 @@ class AgipdGain(ReductionMethod):
@@ -199,7 +199,8 @@ class AgipdGain(ReductionMethod):
'explicit gain sources')
'explicit gain sources')
return
return
self.log.info(f'Found {domain}')
self.log.info(f'No detector specified, detected {domain} '
 
f'automatically')
agipd_sources = f'{domain}/DET/*CH0:xtdf'
agipd_sources = f'{domain}/DET/*CH0:xtdf'
else:
else:
@@ -214,6 +215,8 @@ class AgipdGain(ReductionMethod):
@@ -214,6 +215,8 @@ class AgipdGain(ReductionMethod):
# Unfortunately HED uses a different domain for
# Unfortunately HED uses a different domain for
# its AGIPD control devices, hardcode it here
# its AGIPD control devices, hardcode it here
# for convenience.
# for convenience.
 
# TODO: This could also be solved via a CalCat
 
# query.
domain = domain.replace('_DET_', '_EXP_')
domain = domain.replace('_DET_', '_EXP_')
control_source = f'{domain}/MDL/FPGA_COMP'
control_source = f'{domain}/MDL/FPGA_COMP'
Loading