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

Fix incorrect types in pypesto.result.profile.ProfilerResult #1210

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 21, 2023

* Make all `*_path` attributes numpy arrays as promised in the type hints

  This caused ICB-DCM#1205, because some entries were just plain `nan`. Fixes ICB-DCM#1205.

* Fixes a lurking issue of potentially mismatching path lengths

  If e.g. x_path with length >1 was passed, but any of the default arguments would be missing,
  the *_paths wouldn't be aligned properly

* Remove some unnecessary complexity
@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (2de98f5) 83.99% compared to head (22724d3) 78.75%.

Files Patch % Lines
pypesto/result/profile.py 90.90% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1210      +/-   ##
===========================================
- Coverage    83.99%   78.75%   -5.25%     
===========================================
  Files          148      148              
  Lines        11802    11799       -3     
===========================================
- Hits          9913     9292     -621     
- Misses        1889     2507     +618     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@PaulJonasJost PaulJonasJost left a comment

Choose a reason for hiding this comment

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

Thanks for the 👍🏼

@dweindl dweindl merged commit b15156e into ICB-DCM:develop Nov 22, 2023
18 checks passed
@dweindl dweindl deleted the fix_1205_again branch November 22, 2023 10:19
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