-
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
Visualization #405
Visualization #405
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #405 +/- ##
==========================================
- Coverage 77.88% 77.8% -0.08%
==========================================
Files 22 22
Lines 2116 2118 +2
Branches 493 494 +1
==========================================
Hits 1648 1648
- Misses 344 345 +1
- Partials 124 125 +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.
looks good. one could simplify things by indicating no visualization file available by passing None (or nothing, using default values) instead of ''.
doc/documentation_data_format.md
Outdated
@@ -447,14 +447,14 @@ order: | |||
|
|||
*(wrapped for readability)* | |||
|
|||
| ... | [xValues] | [xOffset] | [xLabel] | xScale | | |||
| ... | [xValues] | [xOffset] | [xLabel] | [xScale] | | |||
|---|---|---|---|---| | |||
|... | [time(default)|parameterOrStateId] | [NUMERIC] | [STRING] | lin|log|log10|order | |
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.
please also add [] here to indicate it as optional
doc/documentation_data_format.md
Outdated
|---|---|---|---|---| | ||
|... | [time(default)|parameterOrStateId] | [NUMERIC] | [STRING] | lin|log|log10|order | | ||
|...|...|...|...| | ||
|
||
*(wrapped for readability)* | ||
|
||
| ... | yValues | [yOffset] | [yLabel] | yScale | [legendEntry] | | ||
| ... | yValues | [yOffset] | [yLabel] | [yScale] | [legendEntry] | | ||
|---|---|---|---|---|---| | ||
|... | observableId | [NUMERIC] | [STRING] | lin|log|log10 | [STRING] | |
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.
see above
petab/visualize/helper_functions.py
Outdated
@@ -40,9 +40,14 @@ def import_from_files( | |||
pd.DataFrame, pd.DataFrame]: | |||
""" | |||
Helper function for plotting data and simulations, which imports data | |||
from PEtab files. | |||
from PEtab files. If path to the visualization file is not provided, the |
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.
from PEtab files. If path to the visualization file is not provided, the | |
from PEtab files. If `visualization_file_path` is not provided, the |
can one make visualization_file_path optional too? above, -> visualization_file_path: str = None
, and move one down. and below, change the check for visualization_file_path != ''
to visualization_file_path not in ['', None]
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 just if visualization_file_path
instead of visualization_file_path != ''
if isinstance(vis_spec, str): | ||
if vis_spec != '': | ||
if vis_spec: | ||
if isinstance(vis_spec, str): |
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 if that check is needed.
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.
well, if vis_spec can be None, '' and str, then, I think, it's needed.
But maybe excluding '' is better
#194
documentation update
visualization without visu_spec fix