-
Notifications
You must be signed in to change notification settings - Fork 10
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 delete db scenario #519
Conversation
the database engine is not created before this part
Mentioned in #512 (comment)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #519 +/- ##
==========================================
+ Coverage 77.50% 77.54% +0.03%
==========================================
Files 50 50
Lines 6793 6790 -3
==========================================
Hits 5265 5265
+ Misses 1528 1525 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
examples/examples.py
Outdated
@@ -107,7 +107,7 @@ | |||
data_format = "local_db" # "local_db" or "timescale" | |||
|
|||
# select the example to run from the available examples above | |||
example = "small" | |||
example = "small_learning_1" |
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.
this should not change?
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.
the other two commits are used to reproduce the mentioned issue
Yes, I will revert those, once we know whats up with #512
assume/scenario/loader_csv.py
Outdated
@@ -728,7 +728,7 @@ def load_scenario_folder( | |||
study_case: str, | |||
perform_evaluation: bool = False, | |||
terminate_learning: bool = False, | |||
episode: int = 1, | |||
episode: int = 0, | |||
eval_episode: int = 1, |
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.
should eval_episode be 0 as well?
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 didn't look into this change really, just applied it by recommendation in #512 but it did not help me reproduce an issue
-remove unrequired call for delete_similar_runs in run_learning function -move episode initilization back into init of output role -delete_similar_runs on start in output role when episode is 1 -clean up load_scenario_folder function as it doesn't require episode and other info any more -remove not setting up the world when episode==1 since this error no longer occurs -save last policies when exiting the loop to avoid confusion with numbering of last episode -adjust tutorial 04 as well
this also closes #517 |
Another attempt to fix the issue in
#512 (comment)
the first two commits are valid anyway, the other two commits are used to reproduce the mentioned issue (unsuccessfully on my side though)
The first two commits do:
on_ready
Eventually this helps