utils
Shared utilities for IO implementations.
Functions
| Name | Description |
|---|---|
| convert_attr_units | Convert one attr to the units patch attrs use, dropping the file’s units. |
| drop_blank_attrs | Drop the named attrs whose value is blank, in place. |
| get_attr_names | Return the attr names a reader’s attr class accepts from a file header. |
| get_gridded_coord | Return a stored coordinate array forced onto an even grid. |
| resolve_keyed_source | Return the one source a native logical key names. |
| selection_windows | Return bounding array windows and residual coordinate indexers. |
| should_snap | Return whether the all/none or named-coordinate option enables snapping. |
| slice_dataset | Read the positional sample windows of a stored array. |
| step_from_interval | The time step a file states as a sample interval in seconds. |
| step_from_rate | The time step a file states as a sampling rate in Hz. |
| validate_windows |
Return FiberIO.read_array windows, refusing a spelling which is not one.
|
| windows_to_slices |
Turn FiberIO.read_array windows into one slice per axis.
|