TxyLin
class pyltm.TxyLinProperties¶
| Property | Description | Required |
|---|---|---|
external_reference | ||
name | Optional name. | |
scenarios | Array of double for values corresponding to time in timestaps. | |
timestamps | Array of strings with timestamps. | |
unit | Unit for values in scenarios. |
Methods¶
load_h5¶
static load_h5(*args, **kwargs)Overloaded function.
load_h5(filename: str, group: str) -> tupleLoads a timeseries from an API compatible H5 file into an API timeseries.
Args: filename (str): Filename to read the H5 data from. group (str): Internal H5 path to where the data should be read.
Returns: tuple(TxyLin, AttributesList, metadata): External reference object
load_h5(external_reference: pyltm.ExternalDataReference) -> tupleLoads a timeseries from an API compatible H5 file into an API timeseries.
Args: filename (str): Filename to read the H5 data from. group (str): Internal H5 path to where the data should be read.
Returns: tuple(TxyLin, AttributesList, metadata): External reference object
save_h5¶
save_h5(self: pyltm.TxyLin, filename: str, group: str, attributes: list[tuple[str, str]] = [], metadata: json = None) -> pyltm.ExternalDataReferenceSaves an arbitrary timeseries into an API compatible H5 file.
Parameters:
filename (str) – Filename to store the H5 data in.
group (str) – Internal H5 path to where the data should be stored.
attributes (list[tuple[str, str]**]) – An optional list of string attributes.
metadata (dict) – An optional dict with structured data.
Returns: External reference object
Return type: external_reference (ExternalReference)