get_format
get_format(
path: str | pathlib.Path | dascore.utils.io.IOResourceManager[str, Path, IOResourceManager] ,
file_format: str | None = None,
file_version: str | None = None,
**kwargs ,
)-> ‘tuple[str, str]’
Return the name of the format contained in the file and version number.
Parameters
Parameter | Description |
---|---|
path | The path to the file. |
file_format | The known file format. |
file_version | The known file version. |
Returns
A tuple of (file_format_name, version) both as strings.
Raises
dascore.exceptions.UnknownFiberFormat - Could not determine the fiber format.