-
Notifications
You must be signed in to change notification settings - Fork 31
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
Py: Add failfast argument to simulate_petab #1528
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1528 +/- ##
===========================================
+ Coverage 79.25% 79.28% +0.03%
===========================================
Files 67 67
Lines 10439 10439
===========================================
+ Hits 8273 8277 +4
+ Misses 2166 2162 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Kudos, SonarCloud Quality Gate passed! |
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.
Also fine as is
@@ -51,6 +51,7 @@ def simulate_petab( | |||
scaled_parameters: Optional[bool] = False, | |||
log_level: int = logging.WARNING, | |||
num_threads: int = 1, | |||
failfast: bool = True, |
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.
failfast: bool = True, | |
fail_fast: bool = True, |
@@ -82,6 +83,9 @@ def simulate_petab( | |||
:param num_threads: | |||
Number of threads to use for simulating multiple conditions | |||
(only used if compiled with OpenMP). | |||
:param failfast: |
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.
:param failfast: | |
:param fail_fast: |
num_threads=num_threads) | ||
rdatas = amici.runAmiciSimulations( | ||
amici_model, solver, edata_list=edatas, | ||
num_threads=num_threads, failfast=failfast) |
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.
num_threads=num_threads, failfast=failfast) | |
num_threads=num_threads, fail_fast=fail_fast) |
Ah, would need to change elsewhere too, nevermind. |
No description provided.