Trimming.TrimmingInfo#

Trimming.TrimmingInfo.py

custom_slice_string(slice_)#

Convert a slice object to a string representation. This function removes the third ‘None’ from the representation of the slice: e.g., slice(1, 2, None) -> “slice(1, 2)”

class TrimmingInfo(xr_slices=None, uv_slices=None, mapping=None)#

Bases: object

copy(xr_slices=None, uv_slices=None, mapping=None)#

Returns a new TrimmingInfo object with specified xr_slices, uv_slices, and mapping. If any of the parameters are None, it uses the current object’s attributes.

get_trimmed_mapping(xr_slices=None, uv_slices=None)#

Returns a new MappingInfo object with xr_slices and uv_slices applied. This is a temporary fix for plot_compact. Removing attributes xr_peaks, uv_peaks, xr_moment, uv_moment, and xr_curve, uv_curve should be considered.