-
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
world.output_role.db = None leads to attribute error in DRL examples #512
Comments
Hi, I doubt that this error comes from an uninitialized db_uri - if you do not provide a DB_URI, there should not be any output_role - not a Did you check if this occurs on main as well? I fixed some issues for the output role in the attached PR though. |
do not try to access self.db if we do not have a db_uri defined closes #512
Hi, thanks for looking into it. |
I think I understand now: I renamed this function in d21a4e5 So one must use the matching assume version from main today. |
I don't think the renaming of the function is what is causing the issue, as I have today's main assume version. It seems to be due to self.db being initialized as None instead of db_engine. Does this make sense? |
There is no way an object of type Maybe try to run Does this happen in colab as well..? |
Sorry, I can't reproduce this. Maybe you can provide a minimal example for this? I can only imagine that you are using an old release... try running: But I don't think that this would block releasing the new software |
Maybe you can check if you can still reproduce this, now that v0.5.0 is released |
The new version didn't change the behavior for me. |
[Edit: Ok, wait, I'll need to check again] |
@mthede Maybe someone else can try to reproduce and fix this. |
With the described example above, I don't get an error message either. I just noticed the unexpected behavior that similar runs were not deleted in the database. But that was fixed with your most recent PR, I've already tried it. The errors described by Andreas from the notebooks seem to be resolved with the new release. (Maybe @AndreasEppler can confirm this again, but he told me that example 9 fully ran without any problems.) So most likely we were talking about two different issues? Both seem to be fixed :) thanks! |
fixed in #519 |
Issue found by @mthede
When running 04_reinforcement_learning_algorithm_example.ipynb or 09_example_Sim_and_xRL.ipynb, the following issue emerges:
The issue occurs when calling world.output_role.delete_simular_runs() or world.output_role.get_sum_reward()
This appears to be due to a recent change in the WriteOutput class, where db is now initialized as None.
Adding the if-clause
to the run_learning function has been successfully found to be a quick fix for the issue that obviously does not address the problem at its root.
The text was updated successfully, but these errors were encountered: