-
Notifications
You must be signed in to change notification settings - Fork 12
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 sorting of indices of dataframes for the correct sorting of x-values #430
Conversation
…y and has to be handled differently
Codecov Report
@@ Coverage Diff @@
## develop #430 +/- ##
===========================================
- Coverage 77.91% 77.88% -0.04%
===========================================
Files 22 22
Lines 2205 2211 +6
Branches 527 529 +2
===========================================
+ Hits 1718 1722 +4
- Misses 362 363 +1
- Partials 125 126 +1
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.
fine for me if fine for @plakrisenko @MerktSimon
petab/visualize/plotting_config.py
Outdated
elif isinstance(conditions, pd.core.series.Series): | ||
conditions.sort_index(inplace=True) | ||
else: | ||
print('strange: conditions object is neither numpy nor ' |
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.
should this raise an error, i.e. the case never occur? then raise ValueError("Strange: ...")
Co-Authored-By: Yannik Schälte <31767307+yannikschaelte@users.noreply.github.com>
ping @erikadudki |
Release 0.1.9 Library: * Allow URL as filenames for YAML files and SBML models (Closes #187) (#459) * Allow model time in observable formulas (#445) * Make float parsing from CSV round-trip (#444) * Validator: Error message for missing IDs, with line numbers. (#467) * Validator: Detect duplicated observable IDs (#446) * Some documentation and CI fixes / updates * Visualization: Add option to save visualization specification (#457) * Visualization: Column XValue not mandatory anymore (#429) * Visualization: Add sorting of indices of dataframes for the correct sorting of x-values (#430) * Visualization: Default value for the column x_label in vis_spec (#431)
conditions
andms
have to coincide, the problem here was, that they weren't. So now, index sorting is performed beforeconditions
andms
are zipped together and then afterwards sorted according to ascending conditions.closes something wrong with the ordering xValues in dose response #414