Use tolerant assertions for floating-point tests #130
Merged
Annotations
3 errors and 10 warnings
|
Upload coverage comment
Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment
|
|
Upload coverage comment
HttpError: Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment
|
|
Upload coverage comment
Permission denied when trying to create/update comment.
This PR is from a fork. GitHub restricts the GITHUB_TOKEN to read-only
for fork PRs triggered by the `pull_request` event.
To fix this, use the `pull_request_target` event instead:
```yaml
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
```
Note: `pull_request_target` runs in the context of the base branch.
Be cautious when checking out fork code — never run untrusted code
from the fork with elevated permissions.
For more information, see:
https://github.com/MishaKav/pytest-coverage-comment#fork-prs
|
|
Test with pytest:
bdpy/mri/fmriprep.py#L98
invalid escape sequence '\.'
|
|
Test with pytest:
bdpy/mri/roi.py#L335
invalid escape sequence '\*'
|
|
Test with pytest:
bdpy/mri/roi.py#L296
invalid escape sequence '\.'
|
|
Test with pytest:
bdpy/mri/roi.py#L291
invalid escape sequence '\.'
|
|
Test with pytest:
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/nibabel/quaternions.py#L32
`np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
|
|
Test with pytest:
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/nibabel/quaternions.py#L31
`np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
|
|
Test with pytest:
bdpy/preproc/preprocessor.py#L13
Importing from numpy.matlib is deprecated since 1.19.0. The matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
|
|
Test with pytest:
bdpy/dataform/datastore.py#L132
invalid escape sequence '\('
|
|
Test with pytest:
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/hdf5storage/utilities.py#L44
pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
|
|
Test with pytest:
bdpy/bdata/bdata.py#L718
invalid escape sequence '\*'
|
background
wait
wait-all
cancel
Loading