file_writer
Classes:
Name | Description |
---|---|
FileWriter |
Base class for file-based DataWriters. |
Classes#
FileWriter #
Bases: DataWriter
, ABC
Base class for file-based DataWriters.
Methods:
Name | Description |
---|---|
no_leading_dot |
|
write |
|
Attributes:
Name | Type | Description |
---|---|---|
file_extension |
str
|
The file extension that the FileHandler should be used for, e.g., ".nc", ".csv", ... |
Attributes#
file_extension
instance-attribute
#
The file extension that the FileHandler should be used for, e.g., ".nc", ".csv", ...
Functions#
no_leading_dot #
write
abstractmethod
#
Writes the dataset to the provided filepath.
This method is typically called by the tsdat storage API, which will be responsible for providing the filepath, including the file extension.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset
|
Dataset
|
The dataset to save. |
required |
filepath
|
Optional[Path]
|
The path to the file to save. |
None
|