tomwer.core.process.reconstruction.darkref.darkrefs.DarkRefsTask#
- class tomwer.core.process.reconstruction.darkref.darkrefs.DarkRefsTask(process_id=None, varinfo=None, inputs=None, node_id=None, node_attrs=None, execinfo=None)#
Compute median/mean dark and ref from originals (dark and ref files)
- TOMO_N = 'TOMO_N'#
- VALID_WHAT = ('refs', 'dark')#
Tuple of valid option for What
- WHAT_DARK = 'dark'#
- WHAT_REF = 'refs'#
- compute(scan, target, method, overwrite)#
- static definition()#
definition of the process
- static getDarkHSTFiles(directory, prefix, file_ext='.edf')#
- Returns:
the list of existing refs files in the directory according to the file pattern.
- static getDarkPatternTooltip()#
- static getRefHSTFiles(directory, prefix, file_ext='.edf')#
- Returns:
the list of existing refs files in the directory according to the file pattern.
- static getRefPatternTooltip()#
- static get_darks_frm_process_file(process_file, entry=None, as_url=False)#
- Parameters:
process_file – path to the process file
entry – entry to read in the process file if more than one
as_url (bool) – if true then an url will be used instead of a numpy.array
- Return type:
dict | None
- Returns:
dictionary with index in the sequence as key and numpy array as value (or url if as_url set to True)
- static get_flats_frm_process_file(process_file, entry=None, as_url=False)#
- Parameters:
process_file –
entry – entry to read in the process file if more than one
as_url (bool) – if true then an url will be used instead of a numpy.array
- Return type:
dict | None
- Returns:
- info_suffix = '.info'#
- static program_name()#
Name of the program used for this processing
- static program_version()#
version of the program used for this processing
- static properties_help()#
- Returns:
display the list of all managed keys and possible values
- property recons_params#
- run()#
To be implemented by the derived classes
- setForceSync(b)#
- setPatternRecons(pattern)#
- set_configuration(properties)#
- set_recons_params(recons_params)#