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: Remove redundant DIPY function #1369

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

jhlegarreta
Copy link
Contributor

@jhlegarreta jhlegarreta commented Jan 9, 2025

  • ENH: Remove redundant DIPY function
  • STYLE: Fix style warnings raised by latest ruff release
  • ENH: Require Python >= 3.9

@jhlegarreta jhlegarreta force-pushed the RemoveRedundantDIPYMethod branch from 51e032b to 81db00c Compare January 9, 2025 23:28
@jhlegarreta
Copy link
Contributor Author

Sorry to tag you once again @effigies @mgxd @oesteban. This is ready for review/merging.

Remove redundant DIPY `dipy.stats.qc.find_qspace_neighbors` function:
DIPY 1.10.0 was released on Dec 12, 2024, and includes the commit where
the function at issue was added:
https://docs.dipy.org/stable/release_notes/release1.10.html
dipy/dipy#3156

Set the minimum required DIPY version to 1.10.0.

This patch set will additionally fix the DIPY keyword-only argument
warning:
```
mriqc/interfaces/diffusion.py::mriqc.interfaces.diffusion._find_qspace_neighbors
  /src/mriqc/mriqc/interfaces/diffusion.py:1435:
   UserWarning: Pass ['bvecs'] as keyword args. From version 2.0.0 passing
   these as positional arguments will result in an error.
    gtab = gradient_table(bvals, bvecs)
```

raised for example in:
https://app.circleci.com/pipelines/github/nipreps/mriqc/1651/workflows/01145976-37e9-4633-a00b-3ffe27053801/jobs/10057
Fix style warnings raised by latest `ruff` release (v0.9.0, released Jan
9, 2025).

Fixes style warnings raised for example in:
https://github.com/nipreps/mriqc/actions/runs/12700111857/job/35402136045?pr=1369#step:4:134

`ruff` v0.9.0 release blog post:
https://astral.sh/blog/ruff-v0.9.0
@jhlegarreta jhlegarreta force-pushed the RemoveRedundantDIPYMethod branch from 81db00c to a291e16 Compare January 12, 2025 23:12
Require Python >= 3.9: Python 3.8 is at EOL since Oct, 7, 2024:
https://devguide.python.org/versions/
@jhlegarreta jhlegarreta force-pushed the RemoveRedundantDIPYMethod branch from 29a989c to 8ad9e49 Compare January 12, 2025 23:30
@oesteban oesteban merged commit f05769e into nipreps:master Jan 13, 2025
14 checks passed
@jhlegarreta jhlegarreta deleted the RemoveRedundantDIPYMethod branch January 13, 2025 14:29
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