ewokstomo.tasks.buildgallery.BuildProjectionsGallery#

class ewokstomo.tasks.buildgallery.BuildProjectionsGallery(inputs=None, varinfo=None, node_id=None, node_attrs=None, execinfo=None, profile_directory=None)[source]#

Bases: Task

Parameters:
apply_flat_field_correction(projections)[source]#

Applies flat field correction to the projections.

get_beam_intensities(data_urls)[source]#

Return beam monitor intensities aligned with the selected projections.

Parameters:

data_urls (list[Any])

Return type:

ndarray

get_darks_from_h5(reduced_dark_path, data_path='entry0000/darks')[source]#

Loads the data from an HDF5 file.

Parameters:
  • reduced_dark_path (str)

  • data_path (str)

Return type:

dict[int, ndarray]

get_flats_from_h5(reduced_flat_path, data_path='entry0000/flats')[source]#

Loads the data from an HDF5 file.

Parameters:
  • reduced_flat_path (str)

  • data_path (str)

Return type:

dict[int, ndarray]

Parameters:

processed_data_dir (Path)

Return type:

Path

Parameters:
Return type:

str

get_proj_from_data_url(data_url)[source]#

Load the data from a DataUrl object.

Return type:

ndarray

get_projections_by_angle_step(angle_step=90)[source]#

Returns the projections to be processed.

Parameters:

angle_step (float)

Return type:

tuple[list[float], list[ndarray], ndarray]

run()[source]#

Creates a gallery of images from the NXtomoScan object.