module of dascore.utils source

Utilities for working with the Patch class.


Name Description
check_patch_attrs Check for expected attributes.
check_patch_dims Check if a patch object has required dimensions, else raise PatchDimError.
copy_attrs Make a copy of the attributes dict so it can be mutated.
get_default_patch_name Generates the name of the node.
get_dim_value_from_kwargs Assert that kwargs contain one value and it is a dimension of patch.
get_start_stop_step Convenience method for getting start, stop, step for a given dimension.
merge_patches Merge all compatible patches in spool or patch list together.
patch_function Decorator to mark a function as a patch method.
patches_to_df Return a dataframe
scan_patches Scan a sequence of patches and return a list of summaries.