Skip to content

compressed data, setting include_metadata = True #9

@SimonRubenDrauz

Description

@SimonRubenDrauz
  • pandahub version: 0.2.3
  • Python version: 3.8
  • Operating System: Windows

Description

Calling a compressed time series from the database and setting 'include_metadata'=True. This leads to an error in Pandahub.py.

What I Did

Traceback (most recent call last):
File "C:\Users\sdrauz\anaconda3\envs\pandahub\lib\site-packages\IPython\core\interactiveshell.py", line 3397, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 155, in <cell line: 142>
ts = ph.get_timeseries_from_db(filter_document={'data_type':"p_mw"},
File "C:\Users\sdrauz\git\pandahub\pandahub\lib\PandaHub.py", line 1299, in get_timeseries_from_db
del data["timestamps"]
KeyError: 'timestamps'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions