tomwer.core.process.reconstruction.darkref.darkrefs.requires_reduced_dark_and_flat#

tomwer.core.process.reconstruction.darkref.darkrefs.requires_reduced_dark_and_flat(scan, logger_=None)#

helper function: If no dark / flat are computed yet then will pick the first dark and the first flat.

Expected usage: for tomwer application which requires some time and flat and to avoid some warnings within standalones.

Params scan:

scan for which we want to get quick dark and flat

Params logger_:

if provided will add some warning when attempt to get reduced flat / dark.

Return type:

tuple

Returns:

tuple of what was missing and has been computed