get_format
get_format(
path: str | Path ,
file_format: str | None ,
file_version: str | None ,
)-> 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.