savu.data.data_structures.data_add_ons module¶
-
class
DataMapping
[source] A class providing helper functions to multi-modal loaders.
-
check_is_map
(proj_dir)[source]
-
check_is_tomo
(proj_dir, rotation)[source]
-
get_axes
()[source]
-
get_motor_type
()[source]
-
get_motors
()[source]
-
set_axes
(axes)[source]
-
set_motor_type
(motor_type)[source]
-
set_motors
(motors)[source]
-
-
class
Padding
(pData)[source] A class that organises padding of the data. An instance of Padding can be associated with a Data object in a plugin that inherits from BaseFilter, inside
savu.plugins.base_filter.BaseFilter.set_filter_padding()
-
pad_directions
(pad_list)[source] Pad multiple, individually specified, dimensions.
- param list(dict) pad_list
A list of strings of the form ‘dim.pad’, ‘dim.after.pad’ or ‘dim.before.pad’
‘dim’ should be replaced with the dimension to pad
‘pad’ should be replaced with the amount to pad
‘before’ and ‘after’ are optional positional keywords specifying padding ‘before’ or ‘after’ the data for the specified dimension index (if neither are specified BOTH will be padded)
-
pad_frame_edges
(padding)[source] Pad all the edges of a frame of data with the same pad amount (i.e pad in the core dimensions).
- Parameters
padding (int) – The pad amount
-
pad_mode
(mode)[source]
-
pad_multi_frames
(padding)[source] Add extra frames before and after the current frame of data (i.e pad in the fastest changing slice dimension).
- Parameters
padding (int) – The pad amount
-