dummy: A dummy parser
This is a dummy parser, used mainly for testing. It provides no real functionality.
Submodules
- yadg.parsers.dummy.main.process(fn, encoding='utf-8', timezone='localtime', parameters=None)
A dummy parser.
This parser simply returns the current time, the filename provided, and any
kwargs
passed.In case the provided
filetype
is atomato.json
file, this is a json data file from thetomato
package, which should contain alist
of{"value": float, "time": float}
datapoints in itsdata
entry.- Parameters
fn (
str
) – Filename to processencoding (
str
) – Not used.timezone (
str
) – Not usedparameters (
Optional
[BaseModel
]) – Parameters forDummy
.
- Returns
(data, metadata, fulldate) – Tuple containing the timesteps, metadata, and full date tag. No metadata is returned by the dummy parser. The full date is always returned.
- Return type
tuple[list, dict, bool]