Commit 8725ba88 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

dataset_analyzer: add option to force load flats

parent 962e8fe0
Pipeline #33828 passed with stages
in 2 minutes and 31 seconds
......@@ -174,10 +174,10 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer):
def _get_flats_darks(self):
if len(self.flats) == 0:
if len(self.flats) == 0 and not(self.extra_options["force_flatfield"]):
# No flats at all in the dataset. Do nothing.
if self._load_flats_from_tomwer():
if self.processes_file is None and self._load_flats_from_tomwer():
# Loaded from tomwer_processes.h5
# Otherwise load or compute flats/darks with nabu
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