data_handler
Classes:
Name | Description |
---|---|
DataHandler |
Groups a DataReader subclass and a DataWriter subclass together. |
Classes#
DataHandler #
Bases: ParameterizedClass
Groups a DataReader subclass and a DataWriter subclass together.
This provides a unified approach to data I/O. DataHandlers are typically expected to be able to round-trip the data, i.e. the following psuedocode is generally true:
`handler.read(handler.write(dataset))) == dataset`
Methods:
Name | Description |
---|---|
patch_parameters |
|
Attributes:
Name | Type | Description |
---|---|---|
parameters |
Dict[str, Any]
|
|
reader |
DataReader
|
The DataReader subclass responsible for reading input data. |
writer |
DataWriter
|
The FileWriter subclass responsible for writing output data. |
Attributes#
parameters
class-attribute
instance-attribute
#
reader
instance-attribute
#
The DataReader subclass responsible for reading input data.
writer
instance-attribute
#
The FileWriter subclass responsible for writing output data.