-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unwanted persistance in interative notebooks #55
Labels
bug
Something isn't working
Comments
Retiefasaurus
added a commit
that referenced
this issue
Nov 27, 2023
`__init__` function. Related to #55
Retiefasaurus
added a commit
that referenced
this issue
Nov 27, 2023
Retiefasaurus
added a commit
that referenced
this issue
Nov 27, 2023
I had come across this issue but never understood why. Thanks, Retief. |
Retiefasaurus
added a commit
that referenced
this issue
Jan 15, 2024
Merged
chyalexcheng
added a commit
that referenced
this issue
Jan 16, 2024
* Remove class attributes and set_curr_step function -related to #55 * Remove class attributes * Fix issue when plotting obs sims when num_ctrl is small * Remove class attributes * minor changes to default values --------- Co-authored-by: chyalexcheng <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The variables used in class attributes belong to the particular class and not the object. Python class attributes are shared between the same instance. Therefore, re-initializing a Python object will not reset it's class attributes within the same instance. This is unwanted behavior for interactive problems.
Proposed solution:
Move class attributes to class variables of all classes within Grain Learning.
The text was updated successfully, but these errors were encountered: