nxtomomill.io.framegroup.FrameGroup#
- class nxtomomill.io.framegroup.FrameGroup(url, frame_type, copy=None)[source]#
Bases:
objectclass used to store information regarding a group of frame
contains the frames type and if we should provide a copy of those in the output file or not
- Parameters:
url (DataUrl | str | None) – url to access the frame group (bliss scan entry). If provided as a string should fit a DataUrl or be the data path on the input file
frame_type (AcquisitionStep | str) – frame type (dark, projection …). If provided as str should be an AcquisitionStep value
copy (bool | None) – should we copy the data frame in the output file. If set to None then the value will be set to the default copy behavior during processing
Methods
__init__(url, frame_type[, copy])frm_str(input_str)Create an instance of FrameGroup from it string representation.
list_to_str(urls)Convert the list of urls to a string that can be pass to the .cfg file
str_representation(only_data_path, ...)Util function to print the possible input string for this FrameGroup.
Attributes
copy- rtype:
bool | None
frame_type- rtype:
url- rtype:
DataUrl | None
- static list_to_str(urls)[source]#
Convert the list of urls to a string that can be pass to the .cfg file
- str_representation(only_data_path, with_copy, with_prefix_key)[source]#
Util function to print the possible input string for this FrameGroup.
- Parameters:
only_data_path (
bool) – if True consider the input file frame group is contained in the input file and the string representing the url can be only the data pathwith_copy (
bool) – if true display the copy informationwith_prefix_key (
bool) – if true provide the string with the keys as prefix (frame_type=XXX, copy=…)
- Return type:
str