Commit 460e2f34 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Add reverse dict for flats indices

parent b6558f1d
......@@ -171,6 +171,7 @@ class FlatField(CCDProcessing):
for flat_idx, flat_url in self.flats.items():
self.flats_arr[flat_idx] = self.flats_reader.get_data(flat_url)
self._sorted_flat_indices = sorted(self.flats.keys())
self._flat2arrayidx = {k: v for k, v in zip(self._sorted_flat_indices, np.arange(self.n_flats))}
def _load_darks(self):
self.n_darks = len(self.darks)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment