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

Warn for non-unique model-scenario index when adding timeseries #311

Open
danielhuppmann opened this issue Apr 10, 2020 · 0 comments
Open
Assignees

Comments

@danielhuppmann
Copy link
Member

The function add_timeseries() ignores the columns model and scenario when data is added to a scenario. This just led me to inadvertently upload a dataframe with data from multiple scenarios, where just the latest data for each variable was then saved to the database.

We should add a warning (or exception) when a user tries to add data with model/scenario columns that do not have unique values to guard against this mistake.

@danielhuppmann danielhuppmann self-assigned this Apr 10, 2020
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