Skip to content
Snippets Groups Projects

[pnCCD] [CORRECT][DARK] EXtra-data and pasha

Merged Karim Ahmed requested to merge feat/Extra_data_pnCCD into master
1 file
+ 3
8
Compare changes
  • Side-by-side
  • Inline
+ 3
8
@@ -57,7 +57,7 @@ def run_prop_seq_from_path(filename):
def map_modules_from_folder(in_folder, run, path_template, karabo_da,
sequences=None, qm_naming=True):
sequences=None):
"""
Prepare queues of files to process.
Queues are stored in dictionary with module name Q{}M{} as a key
@@ -67,9 +67,7 @@ def map_modules_from_folder(in_folder, run, path_template, karabo_da,
:param path_template: Template for file name
e.g. `RAW-R{:04d}-{}-S{:05d}.h5`
:param karabo_da: List of data aggregators e.g. [AGIPD00, AGIPD01]
:param sequences: List of sequences to be considered.
:param qm_naming: Flag to use Q{}M{} naming convention for dict keys,
instead of the karabo-da.
:param sequences: List of sequences to be considered
:return: Dictionary of queues of files, dictionary of module indexes,
total number of sequences, dictionary of number of sequences per module
"""
@@ -80,10 +78,7 @@ def map_modules_from_folder(in_folder, run, path_template, karabo_da,
sequences_qm = {}
for inset in karabo_da:
module_idx = int(inset[-2:])
if qm_naming:
name = module_index_to_qm(module_idx)
else:
name = inset
name = module_index_to_qm(module_idx)
module_files[name] = Queue()
sequences_qm[name] = 0
mod_ids[name] = module_idx
Loading