-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plot measurements for t = 'inf' #149
Conversation
…n into plot_inf_points
Codecov Report
@@ Coverage Diff @@
## develop #149 +/- ##
===========================================
+ Coverage 77.95% 78.55% +0.60%
===========================================
Files 29 29
Lines 2644 2742 +98
Branches 591 610 +19
===========================================
+ Hits 2061 2154 +93
- Misses 425 427 +2
- Partials 158 161 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looks fine to me.
if np.inf in scond: | ||
# remove inf point | ||
scond = scond[:-1] | ||
smean = smean[:-1] | ||
snoise = snoise[:-1] | ||
|
||
if len(scond) > 0 and len(smean) > 0 and len(snoise) > 0: | ||
# if only t=inf there will be nothing to plot |
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 sure how this ensures that if only t=inf this will not be called.
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.
If only measurements at t=inf are available, scond
, smean
, snoise
will be empty because of the lines 145-149.
petab/visualize/plotter.py
Outdated
def _split_axes_line_plot( | ||
ax: matplotlib.axes.Axes, | ||
plotTypeData: str, | ||
measurements_to_plot: DataSeries, | ||
simulations_to_plot: DataSeries, | ||
noise_col: str, | ||
label_base: str, | ||
split_axes_params: dict, | ||
color=None | ||
) -> Tuple[matplotlib.axes.Axes, matplotlib.axes.Axes]: | ||
""" | ||
Plot data at t=inf. |
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.
Wouldn't plot_inf_states or something be a bit more clear name then split_axes?
Visualization of data at t=\infty with a break in x axis.