Skip to content
Snippets Groups Projects

[JUNGFRAU][CORRECT] Fix/store roi only if defined

Merged Karim Ahmed requested to merge fix/store_roi_only_if_defined into master
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
@@ -440,9 +440,10 @@
" module_no = int(karabo_da[-2:])\n",
" params_source = f'{karabo_id}/ROIPROC/{karabo_da}'\n",
" rois_source = f'{params_source}:output'\n",
" # Create Instrument and Control sections to later add datasets.\n",
" outp_source = ofile.create_instrument_source(rois_source)\n",
" ctrl_source = ofile.create_control_source(params_source)\n",
" if roi_definitions != [-1]:\n",
" # Create Instrument and Control sections to later add datasets.\n",
" outp_source = ofile.create_instrument_source(rois_source)\n",
" ctrl_source = ofile.create_control_source(params_source)\n",
" for i in range(len(roi_definitions) // 6):\n",
" roi_module, a1, a2, b1, b2, mean_axis = roi_definitions[i*6 : (i+1)*6]\n",
" if roi_module == module_no:\n",
Loading