Skip to content

Removed ode_dimension from ODEFilter constructor #70

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

Merged
merged 3 commits into from
Aug 25, 2021
Merged

Conversation

pnkraemer
Copy link
Owner

No description provided.

@pnkraemer pnkraemer linked an issue Aug 25, 2021 that may be closed by this pull request
Copy link
Collaborator

@nathanaelbosch nathanaelbosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

from tornado import init, ivp, iwp, odesolver, rv, sqrt, step


class ReferenceEK0(odesolver.ODEFilter):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.P0 = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these lines necessary?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for any functionality, it is rather a stylistic convention to not introduce attributes outside the init.

@pnkraemer pnkraemer merged commit 9aa2816 into main Aug 25, 2021
@pnkraemer pnkraemer deleted the ode-dimension branch August 25, 2021 08:16
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

Successfully merging this pull request may close these issues.

ODE dimension init
2 participants