Skip to content
Snippets Groups Projects

fix key error modules_mappings

Merged Karim Ahmed requested to merge hotfix/key_error_modules_mapping into master
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -212,9 +212,9 @@
"# Loop over modules\n",
"for i in range(nmods):\n",
" qm = module_index_to_qm(i)\n",
" if qm not in metadata[\"modules_mapping\"].keys() and metadata[\"modules_mapping\"][qm]:\n",
" if not mod_mapping.get(qm):\n",
" continue\n",
" det_name = metadata[\"modules_mapping\"][qm]\n",
" det_name = mod_mapping[qm]\n",
" # loop over constants\n",
" for const in ['Offset', 'Noise', 'ThresholdsDark', 'BadPixelsDark']:\n",
" fpath = '{}/const_{}_{}.h5'.format(out_folder, const, det_name)\n",
Loading