Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compressed data, setting include_metadata = True #9

Open
SimonRubenDrauz opened this issue Jun 28, 2022 · 0 comments
Open

compressed data, setting include_metadata = True #9

SimonRubenDrauz opened this issue Jun 28, 2022 · 0 comments

Comments

@SimonRubenDrauz
Copy link
Contributor

SimonRubenDrauz commented Jun 28, 2022

  • 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant