patch
Utilities for working with the Patch class.
Functions
| Name | Description |
|---|---|
| align_patch_coords | Align patches so they have compatible attrs and data broadcast together. |
| check_coords | Return True if the coordinates of two patches are compatible, else False. |
| check_dims | Return True if dimensions of two patches are equal. |
| check_patch_attrs | Check for expected attributes. |
| check_patch_coords | Check if a patch object has required coordinates, else raise PatchDimError. |
| concatenate_patches | Concatenate the patches together. |
| get_dim_axis_value | Get dimension name, index, and values from args/kwargs for a patch. |
| get_dim_sampling_rate | Get sampling rate, as a float from sampling period along a dimension. |
| get_patch_names | Generates the default name of patch data. |
| get_patch_window_size | Get window sizes for patch processing operations. |
| get_start_stop_step | Convenience method for getting start, stop, step for a given coord. |
| merge_compatible_coords_attrs | Merge the coordinates and attributes of patches or raise if incompatible. |
| 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. |
| stack_patches | Stack (add) all patches compatible with first patch together. |
| swap_kwargs_dim_to_axis | Convert dimension names to axis indices in kwargs. |