Skip to content

ENH: Add type hints across miscellaneous methods #68

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

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

jhlegarreta
Copy link
Contributor

@jhlegarreta jhlegarreta commented Jan 25, 2025

  • ENH: Add type hints across miscellaneous methods
  • STYLE: Prefer specifying b-values as integer types
  • STYLE: Prefer building an array with None to fill S0

@jhlegarreta jhlegarreta force-pushed the AddMiscTypeHints branch 2 times, most recently from 79645c3 to 5f399c3 Compare January 25, 2025 19:25
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.78%. Comparing base (23a1997) to head (f005b7e).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/nifreeze/model/dmri.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   68.75%   68.78%   +0.03%     
==========================================
  Files          20       20              
  Lines         957      958       +1     
  Branches      121      121              
==========================================
+ Hits          658      659       +1     
  Misses        254      254              
  Partials       45       45              

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

@jhlegarreta jhlegarreta force-pushed the AddMiscTypeHints branch 2 times, most recently from 4bddb5a to 2228520 Compare January 25, 2025 21:05
Copy link
Member

@oesteban oesteban left a comment

Choose a reason for hiding this comment

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

Minor nit pick

Add type hints across miscellaneous methods.

Co-authored-by: Chris Markiewicz <[email protected]>
jhlegarreta and others added 2 commits January 26, 2025 10:26
Prefer specifying b-values as `float` types consistently and avoid using
`numbers.Number` which seems to be problematic for type checking with
`mypy`:
python/mypy#3186

Co-authored-by: Chris Markiewicz <[email protected]>
Co-authored-by: Oscar Esteban <[email protected]>
Prefer building an array with `None` to fill `S0` if `S0` is `None`
instead of a list to increase consistency.

Co-authored-by: Chris Markiewicz <[email protected]>
@oesteban oesteban merged commit 18e9de5 into nipreps:main Jan 27, 2025
11 checks passed
@jhlegarreta jhlegarreta deleted the AddMiscTypeHints branch January 27, 2025 13:30
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