Skip to content
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

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jul 9, 2021

No description provided.

@dweindl dweindl requested a review from dilpath July 9, 2021 11:26
@codecov
Copy link

codecov bot commented Jul 9, 2021

Codecov Report

Merging #1528 (fe71a53) into develop (21f3b85) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             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     
Flag Coverage Δ
cpp 75.88% <ø> (+0.05%) ⬆️
petab 67.23% <100.00%> (ø)
python 67.75% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/amici/petab_objective.py 93.14% <100.00%> (ø)
src/solver_cvodes.cpp 70.41% <0.00%> (+0.20%) ⬆️
src/sundials_matrix_wrapper.cpp 84.00% <0.00%> (+0.21%) ⬆️
src/exception.cpp 80.64% <0.00%> (+6.45%) ⬆️

@sonarcloud
Copy link

sonarcloud bot commented Jul 9, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@dilpath dilpath left a 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,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:param failfast:
:param fail_fast:

num_threads=num_threads)
rdatas = amici.runAmiciSimulations(
amici_model, solver, edata_list=edatas,
num_threads=num_threads, failfast=failfast)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
num_threads=num_threads, failfast=failfast)
num_threads=num_threads, fail_fast=fail_fast)

@dilpath
Copy link
Member

dilpath commented Jul 9, 2021

Ah, would need to change elsewhere too, nevermind.

@dweindl dweindl merged commit 27b91df into develop Jul 9, 2021
@dweindl dweindl deleted the feature_petab_failfast branch July 9, 2021 12:15
@dweindl dweindl mentioned this pull request Jul 11, 2021
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.

2 participants