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 a tomato.json file, this is a json data file from the tomato package, which should contain a list of {"value": float, "time": float} datapoints in its data entry.

Parameters
  • fn (str) – Filename to process

  • encoding (str) – Not used.

  • timezone (str) – Not used

  • parameters (Optional[BaseModel]) – Parameters for Dummy.

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]