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

unit_dispatch data stored twice in db #539

Open
AndreasEppler opened this issue Jan 29, 2025 · 1 comment
Open

unit_dispatch data stored twice in db #539

AndreasEppler opened this issue Jan 29, 2025 · 1 comment
Assignees

Comments

@AndreasEppler
Copy link
Collaborator

Each timestep of the unit_dispatch data is stored twice in the database:

In the UnitsOperator, the unit_dispatch that is then sent to the Output role consists of two entries each, one from the start timestep index and one from the end timestep index.

Image
Image
The next time, this function is called, the end index of the previous call becomes the start index of this call.

Therefore, each time step (except for the first and the last) for each unit is sent twice to the output role.
In the output role, we iterate over both time_values and append both to the records to then store them in the db.

Image

This is, how the resulting dataframe filtered for one unit looks like:

Image

@nick-harder
Copy link
Member

@maurerle hey Florian, could you please take a look into this issue, if you have time?

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

3 participants