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

prevent strings being parsed as nan in get_visualization_df #193

Merged
merged 6 commits into from
Mar 8, 2023

Conversation

plakrisenko
Copy link
Member

No description provided.

@plakrisenko plakrisenko changed the base branch from main to develop February 13, 2023 20:21
@plakrisenko plakrisenko requested a review from a team as a code owner February 13, 2023 20:21
@plakrisenko plakrisenko requested a review from dweindl February 13, 2023 20:22
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2023

Codecov Report

Merging #193 (c171eb6) into develop (64ad584) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #193   +/-   ##
========================================
  Coverage    78.07%   78.07%           
========================================
  Files           32       32           
  Lines         2914     2915    +1     
  Branches       690      690           
========================================
+ Hits          2275     2276    +1     
  Misses         461      461           
  Partials       178      178           
Impacted Files Coverage Δ
petab/core.py 91.27% <100.00%> (+0.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

petab/core.py Outdated
@@ -65,7 +65,8 @@ def get_visualization_df(visualization_file: Union[str, Path]) -> pd.DataFrame:
"""
try:
vis_spec = pd.read_csv(visualization_file, sep="\t", index_col=None,
float_precision='round_trip')
float_precision='round_trip',
keep_default_na=False)
Copy link
Member

Choose a reason for hiding this comment

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

I think, I would prefer going via dtype to avoid potential issues elsewhere. That should also solve the issue, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

dtype didn't help, but converters did

@plakrisenko plakrisenko requested a review from dweindl March 1, 2023 17:19
Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

👍

@dweindl dweindl merged commit 751b628 into develop Mar 8, 2023
@dweindl dweindl deleted the visu_df branch March 8, 2023 14:15
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.

3 participants