FileSpool
FileSpool(
path ,
file_format = None,
file_version = None,
)
A spool for a single file.
Parameters
| Parameter | Description |
|---|---|
| path | The path to the file. |
| file_format | The format name, optional. |
| file_version | The version string of the format, optional. |
Note
Some file formats support storing multiple patches, this is most useful for those formats, but should work on all dascore supported formats.
Methods
| Name | Description |
|---|---|
| chunk | Chunk the data in the spool along specified dimension. |
| concatenate | Concatenate the patches together. |
| get_contents | Get a dataframe of the spool contents. |
| get_patch_names | Generates the default name of patch data. |
| map | Map a function of all the contents of the spool. |
| new_from_df | Create a new instance from dataframes. |
| select | Sub-select parts of the spool. |
| sort | Sort the Spool based on a specific attribute. |
| split | Yield sub-patches based on specified parameters. |
| stack_patches | Stack (add) all patches compatible with first patch together. |
| update | Updates the contents of the spool, return the updated spool. |