Skip to content

Commit

Permalink
Deprecate the synthetic and dataset modules (#380)
Browse files Browse the repository at this point in the history
Remove the `harmonica.synthetic` and `harmonica.datasets` modules,
marked for deprecation two minor releases before. Replace the
`hm.datasets` for Ensaio in the gallery example. Remove `data`
directory. Remove `pooch` as a requirement for `harmonica`. Update
Sphinx configuration.
  • Loading branch information
santisoler authored Feb 28, 2023
1 parent 2b015ef commit c2dacf1
Show file tree
Hide file tree
Showing 38 changed files with 67 additions and 1,242 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,29 +138,15 @@ jobs:
- name: List installed packages
run: python -m pip freeze

- name: Copy test data to cache
run: |
echo "Copy data to " $HARMONICA_DATA_DIR/main
set -x -e
mkdir -p $HARMONICA_DATA_DIR/main
cp -r data/* $HARMONICA_DATA_DIR/main
env:
# Define directory where sample data will be copied
HARMONICA_DATA_DIR: ${{ runner.temp }}/cache/harmonica

- name: Run the tests
run: |
ls $HARMONICA_DATA_DIR
if [ ${{ matrix.os }} == 'ubuntu' ]; then
# Set NUMBA_THREADING_LAYER to workqueue on Ubuntu to prevent
# endless loop on some test functions that make use of Numba
NUMBA_THREADING_LAYER=workqueue make test
else
make test
fi
env:
# Define directory where sample data will be copied
HARMONICA_DATA_DIR: ${{ runner.temp }}/cache/harmonica
- name: Convert coverage report to XML for codecov
run: coverage xml
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PROJECT=harmonica
TESTDIR=tmp-test-dir-with-unique-name
PYTEST_ARGS=--cov-config=../.coveragerc --cov-report=term-missing --cov=$(PROJECT) --doctest-modules -v --pyargs
NUMBATEST_ARGS=--doctest-modules -v --pyargs -m use_numba
STYLE_CHECK_FILES=$(PROJECT) examples data/examples doc/conf.py tools
STYLE_CHECK_FILES=$(PROJECT) examples doc/conf.py tools

help:
@echo "Commands:"
Expand Down
33 changes: 0 additions & 33 deletions data/README.md

This file was deleted.

Binary file removed data/britain-magnetic.csv.xz
Binary file not shown.
Binary file removed data/etopo1-0.5deg.nc.xz
Binary file not shown.
32 changes: 0 additions & 32 deletions data/examples/README.txt

This file was deleted.

71 changes: 0 additions & 71 deletions data/examples/britain_magnetic.py

This file was deleted.

44 changes: 0 additions & 44 deletions data/examples/earth_geoid.py

This file was deleted.

41 changes: 0 additions & 41 deletions data/examples/earth_gravity.py

This file was deleted.

41 changes: 0 additions & 41 deletions data/examples/earth_topography.py

This file was deleted.

55 changes: 0 additions & 55 deletions data/examples/south_africa_gravity.py

This file was deleted.

Loading

0 comments on commit c2dacf1

Please sign in to comment.