-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix initialisation freezing on empty primary data. #1016
Fix initialisation freezing on empty primary data. #1016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I adapted the code a tiny bit. Would be great to have tests for this as well, though, I think.
Thank you for taking care of this! One point to discuss, based on the data in |
That's a neat idea, however this sounds more complicated and could rather be handled in a new PR? For now I'm quite happy that there's an error message at all |
Fair point. Yes we should handle that in a new PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question I got into my mind
src/main/scala/edu/ie3/simona/service/primary/PrimaryServiceWorker.scala
Outdated
Show resolved
Hide resolved
…-primaryData # Conflicts: # CHANGELOG.md
…-primaryData # Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fully agree with @danielfeismann that this solution is far from ideal, but at least we display an error message now.
We should work on a more flexible solution that just takes the last value before simulation start if no value for tick 0 is present, as Daniel suggested.
One could also talk about sending out some sort of 0 kW
data if the time series starts after simulation start, however, this could lead to strange agent behavior that is difficult to detect. It's probably better to require the user to explicitly set the value for tick 0.
src/main/scala/edu/ie3/simona/service/primary/PrimaryServiceWorker.scala
Show resolved
Hide resolved
src/main/scala/edu/ie3/simona/service/primary/PrimaryServiceWorker.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @staudtMarius, for fixing this!
Signed-off-by: Sebastian Peter <[email protected]>
Resolves #981