tomwer.tasks.reconstruction.copydarkflat.CopyReducedDarkFlatTask#
- class tomwer.tasks.reconstruction.copydarkflat.CopyReducedDarkFlatTask(*args, **kwargs)#
Copy reduced darks and flats to “data”. If reduced darks of flats exists we will overwrite them only if ‘overwrite’ is True
- contains_dark(scan)#
Return True if the scan has already some dark processed
- Return type:
bool
- contains_dark_or_ref(scan)#
- contains_flat(scan)#
Return True if the scan has already some dark processed
- Return type:
bool
- has_missing_dark_or_ref(scan)#
return True if the scan has no ref or no dark registered
- Return type:
bool
- run()#
This is function triggered when a new scan / data is received. As explained in issue #184 the behavior is the following:
if the scan has already ref files files won’t be overwrite
if the mode is in auto will register last ref file met
if the scan has no ref files and refCopy has some register. Will create a copy of those, normalized from srCurrent (for flat field)