-
Notifications
You must be signed in to change notification settings - Fork 10
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
Address warnings #292
Merged
Merged
Address warnings #292
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
73ce157
Use np.prod, np.product is deprecated in numpy 1.25
sjperkins 078437f
Create a .env file to supply environment variables to pip
sjperkins 17250d0
Fix specification of python-version
sjperkins 12ab506
Use importlib.resources
sjperkins dc3ef7e
fix .env creation, and temporarily disable complete test suite
sjperkins e1d4adb
Handle deprecated collect_ignore
sjperkins 78cfd9b
escape env vars
sjperkins afc2fab
Temporarily disable .env file creation
sjperkins d541e67
Reintroduce prefer_literal=True which is required to get the desired …
sjperkins 9e5bca1
Re-enable .env file
sjperkins bed2d4a
Re-enable complete test suite
sjperkins c620324
Remove pyyaml from the install
sjperkins 21edff5
Separate basis_function into real and complex implementations to avoi…
sjperkins 8155867
Add prefer_literal=True to @overloads in the Perley Polyhedron gridder
sjperkins 71a0808
[skip ci] Update HISTORY.rst
sjperkins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,11 +41,17 @@ jobs: | |
with: | ||
fetch-depth: 1 | ||
|
||
- name: Create a .env file | ||
run: | | ||
touch .env | ||
echo "NUMBA_NRT_STATS=1" >> .env | ||
echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env | ||
|
||
- name: Install base codex-africanus | ||
run: pipenv install .[testing] | ||
|
||
- name: Run base test suite | ||
run: pipenv run NUMBA_NRT_STATS=1 py.test -s -vvv africanus/ | ||
run: pipenv run py.test -s -vvv africanus/ | ||
|
||
- name: List the measures directory | ||
run: curl ftp://ftp.astron.nl/outgoing/Measures/ > measures_dir.txt | ||
|
@@ -67,19 +73,16 @@ jobs: | |
echo "measures.directory: ~/measures" > ~/.casarc | ||
|
||
- name: Install complete codex-africanus | ||
# Need pyyaml for dask 2.17.0 | ||
# See https://github.com/dask/dask/issues/6221 | ||
run: > | ||
pipenv install | ||
.[complete] | ||
pyyaml | ||
git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder | ||
|
||
- name: Log installed package versions | ||
run: pipenv graph | ||
|
||
- name: Run complete test suite | ||
run: pipenv run NUMBA_NRT_STATS=1 py.test -s -vvv africanus/ | ||
run: pipenv run py.test -s -vvv africanus/ | ||
|
||
deploy: | ||
needs: [test] | ||
|
@@ -94,7 +97,7 @@ jobs: | |
- name: Set up Python 3.10 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.10 | ||
python-version: '3.10' | ||
|
||
- name: Install latest setuptools, wheel, pip | ||
run: python3 -m pip install -U pip setuptools wheel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bennahugo Just letting you know that the test cases you wrote easily highlighted up the above needed change, due to the following https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-old-style-numba-captured-errors.
So the test cases were useful to have and I didn't have to understand the implementation to do the upgrade.