Skip to content

Commit

Permalink
Merge pull request #175 from patrick-kidger/result
Browse files Browse the repository at this point in the history
Moved successful events next to each other.
  • Loading branch information
patrick-kidger authored Oct 17, 2022
2 parents 1e53ecd + 7c6f2fc commit 496eaac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diffrax/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

class RESULTS(metaclass=ContainerMeta):
successful = ""
discrete_terminating_event_occurred = (
"Terminating solve because a discrete event occurred."
)
max_steps_reached = (
"The maximum number of solver steps was reached. Try increasing `max_steps`."
)
Expand All @@ -19,9 +22,6 @@ class RESULTS(metaclass=ContainerMeta):
implicit_nonconvergence = (
"Implicit method did not converge within the required number of iterations."
)
discrete_terminating_event_occurred = (
"Terminating solve because a discrete event occurred."
)


def is_okay(result: RESULTS) -> Bool:
Expand Down

0 comments on commit 496eaac

Please sign in to comment.