-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add Pituitary gland example function #75
Conversation
Codecov Report
@@ Coverage Diff @@
## master #75 +/- ##
==========================================
+ Coverage 75.66% 76.30% +0.63%
==========================================
Files 24 26 +2
Lines 2466 2532 +66
==========================================
+ Hits 1866 1932 +66
Misses 600 600
Continue to review full report at Codecov.
|
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.
LGTM!
@@ -64,14 +64,36 @@ def pituitary_ode(w, t, p): | |||
|
|||
def compute_pituitary_gland_df_from_parameters(downsample_rate, |
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.
Not clear how this is different than pituitary_ode
. Can we give it a shorter name?
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.
We can probably leave out 'compute', and also 'df', since that is the return type. Maybe simulate_pituitary_ode
?
@@ -64,14 +64,36 @@ def pituitary_ode(w, t, p): | |||
|
|||
def compute_pituitary_gland_df_from_parameters(downsample_rate, |
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.
We can probably leave out 'compute', and also 'df', since that is the return type. Maybe simulate_pituitary_ode
?
return df | ||
|
||
|
||
def create_latin_hypercube_sampled_pituitary_df(downsample_rate=100, samples=1000): |
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.
maybe remove df
from method name and also create
, like lhs_pituitary() or pituitary_lhs()
. Also add method docstring with return types eg, -> DataFrame, int
.
# PyTest will not compute coverage correctly for @jit-compiled code. | ||
# Thus we must explicitly suppress the coverage check. | ||
@jit | ||
def pituitary_ode(w, t, p): # pragma: no cover |
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.
maybe add type hints for return values -> Tuple[float, float, float, float]
with from typing import Tuple
at the top
@WolfByttner I see it's already merged. Please let me know what you think about the suggestions. |
Add Pituitary gland example function
No description provided.