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

ENH: Use keyword arguments when calling DIPY keyword arg functions #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhlegarreta
Copy link
Contributor

@jhlegarreta jhlegarreta commented Dec 22, 2024

Pass parameters as keyword arguments when calling DIPY functions and methods that have keyword arguments: DIPY has transitioned to keyword-only arguments for these starting version 1.10.0 (released Dec 12, 2024):
https://docs.dipy.org/1.10.0/api_changes.html#dipy-1-10-0-changes

Fixes:

src/nifreeze/testing/simulations.py:181:
 UserWarning: Pass ['bvecs'] as keyword args.
 From version 2.0.0 passing these as positional arguments will result in an error.
      return gradient_table(bvals, bvecs)

raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/12457578962/job/34772277392?pr=35#step:12:1015

@jhlegarreta jhlegarreta force-pushed the CallDIPYFuncsWithKeywordArgs branch 2 times, most recently from b6c01fe to ae3c539 Compare December 22, 2024 22:49
Pass parameters as keyword arguments when calling DIPY functions and
methods that have keyword arguments: DIPY has transitioned to
keyword-only arguments for these starting version 1.10.0
(released Dec 12, 2024):
https://docs.dipy.org/1.10.0/api_changes.html#dipy-1-10-0-changes

Fixes:
```
src/nifreeze/testing/simulations.py:181:
 UserWarning: Pass ['bvecs'] as keyword args.
 From version 2.0.0 passing these as positional arguments will result in an error.
      return gradient_table(bvals, bvecs)
```

raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/12457578962/job/34772277392?pr=35#step:12:1015
@jhlegarreta jhlegarreta force-pushed the CallDIPYFuncsWithKeywordArgs branch from ae3c539 to bc347ed Compare December 22, 2024 22:50
@jhlegarreta jhlegarreta changed the title ENH: Use keyword arguments when calling DIPY functions ENH: Use keyword arguments when calling DIPY keyword arg functions Dec 22, 2024
Copy link

codecov bot commented Dec 22, 2024

Codecov Report

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

Project coverage is 65.84%. Comparing base (6b6ba70) to head (bc347ed).

Files with missing lines Patch % Lines
src/nifreeze/model/_dipy.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #39   +/-   ##
=======================================
  Coverage   65.84%   65.84%           
=======================================
  Files          18       18           
  Lines         931      931           
  Branches      119      119           
=======================================
  Hits          613      613           
  Misses        274      274           
  Partials       44       44           

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

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.

1 participant