Skip to content
Snippets Groups Projects

implemented

1 file
+ 11
3
Compare changes
  • Side-by-side
  • Inline
@@ -179,6 +179,7 @@ def flat_reducer(
median_or_mean: str = ReduceMethod.MEAN.value,
save_intermediated: bool = False,
reuse_intermediated: bool = False,
overwrite: bool = True,
):
"""
this method extracts first a flatfield and dark from two reference scans. After flats and darks extraction, an interpolation is done
@@ -208,7 +209,10 @@ def flat_reducer(
for later usage. Defaults to False
:param bool use_intermediated:
Save intermediated flats and darks and if already presente reuse them for mixing"
Save intermediated flats and darks and if already presente reuse them for mixing
:param bool overwrite:
enforce overwriting of the reduced flats/darks
"""
if reuse_intermediated:
@@ -298,8 +302,12 @@ def flat_reducer(
" Coherence check failed. Total non sense: the code is broken."
)
scan.save_reduced_flats(reduced_flats, flats_infos=reduced_infos)
scan.save_reduced_flats(
reduced_flats, flats_infos=reduced_infos, overwrite=overwrite
)
reduced_darks = fd_start_as_dict["dark"]["images"]
reduced_infos = fd_start_as_dict["dark"]["meta"]
scan.save_reduced_darks(reduced_darks, darks_infos=reduced_infos)
scan.save_reduced_darks(
reduced_darks, darks_infos=reduced_infos, overwrite=overwrite
)
Loading