pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models

Home Page:https://pastastore.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stored name not showing up in stresses dataframe

dbrakenhoff opened this issue · comments

When adding a stress with a metadata dictionary containing 'name' as a key:

pstore.add_stress(s, "my_name", kind="prec", metadata={"name": "not_what_i_intendend"})

The resulting pstore.stresses DataFrame uses the metadata name, and not the name passed when adding the stress as the index:

                                  kind
name                   
not_what_i_intended               prec

I should be seeing my_name there, regardless of the metadata dictionary.

Fixed in #88