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

TEST: Filter legacy SH bases warnings in bootstrap direction getter test #2958

Merged

Conversation

jhlegarreta
Copy link
Contributor

Filter legacy SH bases warnings in bootstrap direction getter test. Warnings are already being tested, and there is no further need to ensure that these warnings are raised.

Filtering them avoids having them printed in the standard output, and thus, unnecessary clutter.

Fixes:

direction/tests/test_bootstrap_direction_getter.py::test_bdg_get_direction
  /home/runner/work/dipy/dipy/venv/lib/python3.11/site-packages/dipy/reconst/shm.py:351:
PendingDeprecationWarning:
The legacy descoteaux07 SH basis uses absolute values for negative harmonic degrees.
It is outdated and will be deprecated in a future DIPY release.
Consider using the new descoteaux07 basis by setting the `legacy` parameter to `False`.
    warn(descoteaux07_legacy_msg, category=PendingDeprecationWarning)

Raised for example at:
https://github.com/dipy/dipy/actions/runs/6657261609/job/18091595226?pr=2941#step:9:4028

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #2958 (8204e2f) into master (d2a0544) will decrease coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2958      +/-   ##
==========================================
- Coverage   81.78%   81.77%   -0.02%     
==========================================
  Files         146      146              
  Lines       20410    20410              
  Branches     3240     3240              
==========================================
- Hits        16693    16690       -3     
- Misses       2898     2901       +3     
  Partials      819      819              

see 2 files with indirect coverage changes

@jhlegarreta
Copy link
Contributor Author

Build failures are unrelated:
https://github.com/dipy/dipy/actions/runs/6660429183/job/18101515383?pr=2958#step:9:4343

Seem to have been appearing after today, maybe PR #2929 has something to do with this (?).

@jhlegarreta jhlegarreta force-pushed the FilterSHBasisWarningsInBootDGTest branch 2 times, most recently from a34c110 to 5123c34 Compare October 27, 2023 14:06
Filter legacy SH bases warnings in bootstrap direction getter test.
Warnings are already being tested, and there is no further need to
ensure that these warnings are raised.

Filtering them avoids having them printed in the standard output, and
thus, unnecessary clutter.

Fixes:
```
direction/tests/test_bootstrap_direction_getter.py::test_bdg_get_direction
  /home/runner/work/dipy/dipy/venv/lib/python3.11/site-packages/dipy/reconst/shm.py:351:
PendingDeprecationWarning:
The legacy descoteaux07 SH basis uses absolute values for negative harmonic degrees.
It is outdated and will be deprecated in a future DIPY release.
Consider using the new descoteaux07 basis by setting the `legacy` parameter to `False`.
    warn(descoteaux07_legacy_msg, category=PendingDeprecationWarning)
```

Raised for example at:
https://github.com/dipy/dipy/actions/runs/6657261609/job/18091595226?pr=2941#step:9:4028
@jhlegarreta jhlegarreta force-pushed the FilterSHBasisWarningsInBootDGTest branch from 5123c34 to 8204e2f Compare October 28, 2023 14:42
@jhlegarreta
Copy link
Contributor Author

All targeted warnings are gone.

A set of unrelated warnings have emerged after PR #2947 merge:
https://github.com/dipy/dipy/actions/runs/6677556772/job/18147684268?pr=2958#step:9:4395

@skoudoro
Copy link
Member

skoudoro commented Nov 2, 2023

thank you @jhlegarreta for this, looks good, merging

@skoudoro skoudoro merged commit 618b395 into dipy:master Nov 2, 2023
27 of 28 checks passed
@jhlegarreta jhlegarreta deleted the FilterSHBasisWarningsInBootDGTest branch November 2, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants