Skip to content

Fix/rust ubuntu issue #393

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

Open
wants to merge 224 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
db21278
add first quadtree construction
mathleur Jan 2, 2024
f9ca22c
remove unnecessary code
mathleur Jan 2, 2024
7fd6cb2
add first quad tree construction in slicer
mathleur Jan 2, 2024
a6b7fe1
start query polygon function
mathleur Jan 3, 2024
96a2467
add polygon slicing
mathleur Jan 4, 2024
19ca294
write all methods for quadtree slicer
mathleur Jan 4, 2024
e2fa53b
quadtree slicer tests
mathleur Jan 5, 2024
33e6e97
clean up
mathleur Jan 5, 2024
5ffd68a
refactor
mathleur Jan 8, 2024
a941be2
finish quad tree extract function
mathleur Jan 8, 2024
badae88
first performance test for quadtree
mathleur Jan 8, 2024
2dda6df
clean up
mathleur Jan 8, 2024
85b9b21
fix MAX number of nodes in QuadTree
mathleur Jan 9, 2024
a69cad0
optimise quadtree slicer to not slice quadrants when the polygon is a…
mathleur Jan 10, 2024
47024c3
clean up
mathleur Jan 10, 2024
b152235
Merge branch 'develop' of github.com:ecmwf/polytope into feature/quad…
mathleur Jan 10, 2024
b860b0d
pull develop and fix tests
mathleur Jan 10, 2024
c2e9df5
add index in quad node
mathleur Jan 10, 2024
97cabac
add index in quadtree construction from point cloud
mathleur Jan 10, 2024
5fedb73
extract in quadtree slicer using point indices instead of lat/lon
mathleur Jan 10, 2024
811e5f9
reformat
mathleur Jan 10, 2024
b571028
start creating a higher-level extract function to allow for different…
mathleur Jan 15, 2024
7ce4957
add higher level extract inside the Polytope class
mathleur Jan 15, 2024
dcc7399
make new polytope class extract work with old tests
mathleur Jan 16, 2024
be4ebdb
add find_point_cloud to xarray datacube
mathleur Jan 16, 2024
d33fa74
quadtree slicer create lat/lon in index tree and stashes the point in…
mathleur Jan 17, 2024
e967f1a
merge mappings on separate files branch
mathleur Jan 17, 2024
c356e70
add irregular grid mapper support for xarray backend
mathleur Jan 17, 2024
a959b71
make first test with irregular grid for xarray backend work
mathleur Jan 19, 2024
d0dd2e0
make irregular grid work with fdb backend
mathleur Jan 22, 2024
8ba1cbf
fix polytope extract test with xarray backend and irregular mapper
mathleur Jan 23, 2024
a261ea5
fix polytope extract test with xarray backend and irregular mapper
mathleur Jan 23, 2024
8b76621
pull develop
mathleur Jan 25, 2024
be3e74b
fix edge case
mathleur Feb 22, 2024
e4334c9
fix edge cases tests
mathleur Feb 22, 2024
0acb8dc
merge with develop
mathleur Feb 23, 2024
10886c7
clean up
mathleur Feb 23, 2024
b0c20bd
fix flake8
mathleur Feb 23, 2024
4d49503
mark tests using gribjump
mathleur Feb 23, 2024
ccd4498
fix missing gribjump tests
mathleur Feb 23, 2024
04a8a74
fix missing gribjump tests
mathleur Feb 23, 2024
9fb93c9
remove unnecessary file
mathleur Mar 15, 2024
d201087
add ORCA grid example
mathleur Mar 20, 2024
bc9596a
merge develop
mathleur Mar 20, 2024
74702c7
Merge pull request #120 from ecmwf/feature/irregular_grid_merged_develop
mathleur Mar 20, 2024
12b0eba
black and isort
mathleur Mar 20, 2024
85e1741
timings for irregular grid
mathleur Mar 21, 2024
29a4c7e
update gitignore
mathleur Jul 15, 2024
3043dc2
merge irregular grid branch WIP
mathleur Jul 16, 2024
ff33e31
fix non-irregular grid tests
mathleur Jul 16, 2024
cab5ed1
WIP make irregular grid work
mathleur Jul 17, 2024
2a72dc5
fix irregular grid
mathleur Jul 17, 2024
d36e2a2
small optimisation
mathleur Jul 17, 2024
cdc13fa
optimise quad tree construction
mathleur Jul 17, 2024
6046cd9
optimise quad tree
mathleur Jul 17, 2024
f7981d1
fix tests back
mathleur Jul 17, 2024
9425e73
optimise quad tree
mathleur Jul 17, 2024
0558ac8
optimise
mathleur Jul 17, 2024
0f337f6
clean up quad tree
mathleur Jul 17, 2024
c590e85
optimise quad tree
mathleur Jul 18, 2024
a2028e7
optimise and clean up
mathleur Jul 18, 2024
809d788
clean up
mathleur Jul 18, 2024
98b618d
clean up
mathleur Jul 18, 2024
4b99770
optimise more
mathleur Jul 18, 2024
fa70c55
clena up
mathleur Jul 18, 2024
142fd3f
rename module
mathleur Dec 19, 2024
ac86716
merge develop and fix errors
mathleur Dec 31, 2024
0717920
finish fixing all errors
mathleur Jan 2, 2025
db6dd32
clean up
mathleur Jan 2, 2025
e5a5de7
clean up
mathleur Jan 2, 2025
840cc68
Merge branch 'develop' of github.com:ecmwf/polytope into feature/irre…
mathleur Jan 2, 2025
6f8a0d7
fix flake8
mathleur Jan 2, 2025
a984b64
Merge pull request #297 from ecmwf/feature/irregular_grid_w_new_develop
mathleur Jan 2, 2025
169af74
add other unstructured grid example
mathleur Jan 10, 2025
af6fb90
Merge branch 'feature/try_to_merge_irregular_grid_develop' of github.…
mathleur Jan 10, 2025
4225e94
try to add icon grid example
mathleur Jan 10, 2025
1ca57cc
fix bug if polygon is in union, we can remove the right compressed axis
mathleur Jan 13, 2025
6852051
try to add unstructured grid on fdb backend
mathleur Jan 16, 2025
4a06281
make unstructured grid work with FDB and add example
mathleur Jan 16, 2025
d81dd66
add rust quadtree
mathleur Feb 7, 2025
00ba795
compile rust and update gitignore
mathleur Feb 7, 2025
9f1e505
add python wrap to rust code
mathleur Feb 7, 2025
3f7d1b2
modify gitignore
mathleur Feb 7, 2025
4038a40
expose quadpoint and find_nodes_in function to python from rust
mathleur Feb 10, 2025
2af2842
add rust python interface
mathleur Feb 11, 2025
d4f6d3a
use quadtree in rust to extract data
mathleur Feb 11, 2025
8918bdb
try to take references instead of copying rust children
mathleur Feb 12, 2025
23cf10b
try to take references instead of copying rust children
mathleur Feb 12, 2025
244d15d
clean up quadtree rust
mathleur Feb 14, 2025
6081dd7
NOT WORKING - try to only give back point indexes to python from rust
mathleur Feb 14, 2025
4feecae
fix bug - STILL EXTRACTION IS SLOW
mathleur Feb 14, 2025
d0d5eea
start rewriting rust quadtree as an arena
mathleur Feb 17, 2025
fb95423
finish rewriting quadtree as an arena
mathleur Feb 18, 2025
4509c54
add quadtree arena with python integration into polytope
mathleur Feb 19, 2025
183aea1
change rust arena to not use arc mutexes
mathleur Feb 19, 2025
eebe402
only expose necessary functions to python
mathleur Feb 19, 2025
f2c774d
improve time to build quadtree
mathleur Feb 19, 2025
827d386
faster rust quadtree arena
mathleur Feb 19, 2025
25bcd60
make quadtree slightly faster to extract
mathleur Feb 19, 2025
4a717ce
fix tests
mathleur Feb 19, 2025
2da14ac
clean up
mathleur Feb 20, 2025
bf186d6
try not copying rust
mathleur Mar 1, 2025
5806a1d
add rust profiler
mathleur Mar 3, 2025
bbeedce
try to make quadtree optimisation work again
mathleur Mar 3, 2025
fb72742
fix optimisation step
mathleur Mar 3, 2025
d0dbf64
optimise code
mathleur Mar 4, 2025
277c1af
change test
mathleur Mar 4, 2025
320ac7d
add performance measures + plots
mathleur Mar 4, 2025
64ddb6e
plot only the polytope time without gj
mathleur Mar 5, 2025
32e9e62
add more
mathleur Mar 5, 2025
4160d85
try to not store the point in separate Quadpoints
mathleur Mar 6, 2025
e9e78fa
start translating the slicing into rust too
mathleur Mar 6, 2025
a90817f
add qhull test + translate more
mathleur Mar 7, 2025
e2fb738
add QHull function
mathleur Mar 7, 2025
d20afc3
add query_polygon function and error handling to python
mathleur Mar 10, 2025
4b0840b
make quadtree slicer work in rust
mathleur Mar 11, 2025
0e65b59
make rust code query polygon faster
mathleur Mar 11, 2025
9329e14
use custom qhull library
mathleur Mar 12, 2025
0d0ba80
improve complete rust performance
mathleur Mar 12, 2025
71beff8
optimise rust quadtree query polygon
mathleur Mar 12, 2025
17097f0
add TODO comment
mathleur Mar 14, 2025
d43c691
WIP
mathleur Mar 14, 2025
f89b156
try to speed up quadtree query polygon
mathleur Mar 17, 2025
dc44d91
Merge pull request #370 from ecmwf/develop
mathleur Mar 27, 2025
a5a1bc8
WIP not working make quadtree slicing faster
mathleur Apr 1, 2025
c67ca1e
Merge pull request #373 from ecmwf/develop
mathleur Apr 1, 2025
5e1e44b
make code work and faster
mathleur Apr 4, 2025
e8d5f36
WIP: try to make faster quadtree query polygon by changing to rust ar…
mathleur Apr 4, 2025
63d8d3e
make rust poylgon slicing faster
mathleur Apr 7, 2025
e701a8a
add venv to gitignore
mathleur Apr 10, 2025
6df1783
profile quadtree
mathleur Apr 15, 2025
c02251a
Merge pull request #386 from ecmwf/develop
mathleur Apr 28, 2025
f835d08
add irregular grid mapper mechanism + Lambert conformal mapping
mathleur May 2, 2025
cb8dd1e
finish adding factory for irregular mapeprs
mathleur May 2, 2025
70a98b5
make the irregular mapper types factory work and add general unstruct…
mathleur May 5, 2025
186748e
fix tests
mathleur May 5, 2025
836b356
fix all tests
mathleur May 5, 2025
ea06e55
fix lambert conformal grid and add test
mathleur May 5, 2025
c82f9e2
fix test lambert conformal against eccodes
mathleur May 5, 2025
d5aaa0a
clean up
mathleur May 7, 2025
f38d6d5
add icon unstructured grid type
mathleur May 13, 2025
1242f9e
start setting up rust better
mathleur May 13, 2025
a437fb2
move install logic to pyproject
Oisin-M May 13, 2025
7f3d8d0
have switch between rust and purepython in setup.py
Oisin-M May 13, 2025
e3af0cf
Remove requirements.txt and version
Oisin-M May 13, 2025
199a6f1
cleanup
Oisin-M May 13, 2025
3e8a39c
readme -> README
Oisin-M May 13, 2025
ee1fb73
delete version
Oisin-M May 13, 2025
cbcfc72
update Cargo.toml
Oisin-M May 13, 2025
2882834
catch ModuleNotFoundError as well as ImportError
Oisin-M May 13, 2025
3c49fcd
update gitignore
Oisin-M May 13, 2025
59b8627
update .gitignore
Oisin-M May 13, 2025
00451c6
WIP merge with develop
mathleur May 13, 2025
817a323
fix all tests
mathleur May 13, 2025
dd2f826
readme -> README
Oisin-M May 13, 2025
886219f
please isort
Oisin-M May 13, 2025
8321b39
please black
Oisin-M May 13, 2025
57b4cd2
please flake8
Oisin-M May 13, 2025
11a7854
Merge branch 'feat/rust_deployment' of https://github.com/ecmwf/polyt…
Oisin-M May 14, 2025
43ebb4c
please linter
Oisin-M May 14, 2025
620999d
move opt test deps to pyproject.toml
Oisin-M May 14, 2025
72d08d1
attempt bugfix ci test
Oisin-M May 14, 2025
dd54c28
try to fix ci
mathleur May 14, 2025
8faaf35
black
mathleur May 14, 2025
0574f80
remove rust typing
mathleur May 14, 2025
fe611ed
flake8
mathleur May 14, 2025
09b9069
add setuptools install to ci
mathleur May 14, 2025
d91d840
fix use of rust code vs python fallback
mathleur May 14, 2025
5d028f5
fix use of rust code vs python fallback
mathleur May 14, 2025
db7e4ab
fix use of rust code vs python fallback
mathleur May 14, 2025
bcad9f4
fix use of rust code vs python fallback
mathleur May 14, 2025
4b63d87
test both rust and python
Oisin-M May 14, 2025
d267df6
typo
Oisin-M May 14, 2025
4be7c6e
debug
Oisin-M May 14, 2025
636f6fd
try var as str
Oisin-M May 14, 2025
147a75c
add prints
Oisin-M May 14, 2025
bfee8a2
further debug
Oisin-M May 14, 2025
e8030da
install rust
Oisin-M May 14, 2025
396105c
try with py312
Oisin-M May 14, 2025
1a43a9f
bugfix cd typo
Oisin-M May 14, 2025
5cd139d
Merge pull request #392 from ecmwf/develop
mathleur May 14, 2025
79cd7ff
clean up and refactor quadtree code
mathleur May 15, 2025
93370ec
Merge branch 'feat/rust_deployment' of github.com:ecmwf/polytope into…
mathleur May 16, 2025
4f81969
refactor and clean up
mathleur May 16, 2025
40328eb
merge w develop
mathleur May 16, 2025
0b9b741
isort + black
mathleur May 16, 2025
f24df2c
try older ci
mathleur May 16, 2025
59d004c
try to build eccodes dependencies in ci separately
mathleur May 16, 2025
10458fa
try adding ecbuild to path in ci
mathleur May 16, 2025
2f4b35e
change identifiers in ci
mathleur May 16, 2025
a0656a1
try giving install path to ci
mathleur May 16, 2025
0603291
try giving install path to ci
mathleur May 16, 2025
09a2383
build ecbuild and libaec together
mathleur May 16, 2025
5f6a368
build all dependenceis together
mathleur May 16, 2025
f02ac32
Merge remote-tracking branch 'origin/main' into feat/rust_deployment
Oisin-M May 19, 2025
d5dfd78
add cd workflows
Oisin-M May 19, 2025
04faf48
add rust install to cd action
Oisin-M May 19, 2025
b8f7d77
only build wheels upto < python 3.13
mathleur May 19, 2025
086e5ee
skip musl wheel
Oisin-M May 19, 2025
6782554
remove prints from setup.py
Oisin-M May 19, 2025
945039d
update Cargo.toml
Oisin-M May 19, 2025
3c57b42
change rust build loc
Oisin-M May 19, 2025
dbfe498
debug
Oisin-M May 19, 2025
a9ebe01
update pyproject tool.setuptools.package.find
Oisin-M May 19, 2025
dccab1c
Merge branch 'feat/rust_deployment' of https://github.com/ecmwf/polyt…
Oisin-M May 19, 2025
6987c52
restructure pacakge
Oisin-M May 19, 2025
10b890c
fix version save location
Oisin-M May 19, 2025
ca72bbb
import version
Oisin-M May 19, 2025
acf1e48
delete .so file
Oisin-M May 19, 2025
fa859c5
add .so to .gitignore:
Oisin-M May 19, 2025
6c3047c
debug force rust
Oisin-M May 19, 2025
cb929de
install libclang
Oisin-M May 19, 2025
82272a9
bugfix pyproject toml syntax
Oisin-M May 19, 2025
23bfe78
bugfix libclang install
Oisin-M May 19, 2025
6002967
bugfix clang install
Oisin-M May 19, 2025
fdd4dd5
bugfix clang version
Oisin-M May 19, 2025
5e6a6b3
retry libclang install
Oisin-M May 19, 2025
fcf8a45
try using custom docker image
Oisin-M May 20, 2025
56b58ba
switch to use custom docker branch
Oisin-M May 20, 2025
cc16463
update cd action branch
Oisin-M May 20, 2025
ade676c
test-cd py10
Oisin-M May 20, 2025
2b37539
fix pyproject.toml
Oisin-M May 20, 2025
e5ff030
skip i686
Oisin-M May 20, 2025
f694807
build for all pyversions mac and linux
Oisin-M May 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: cd

on:
push:
tags:
- '**'

jobs:
pypi_binwheels:
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi-binwheel.yml@feat/rust_wheels_with_clang
secrets: inherit
with:
platforms: "['ubuntu-latest','macos-latest','windows-latest']"
pyversions: "['38','39','310','311','312','313']"
env_vars: |
{
"USE_RUST": "1",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}

pypi_purepython:
needs: pypi_binwheels
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi.yml@feat/rust_wheels_with_clang
secrets: inherit
with:
env_vars: |
{
"USE_RUST": "0",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}
121 changes: 72 additions & 49 deletions .github/workflows/ci.yaml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
name: ci
on:
# Trigger the workflow on push to master or develop, except tag creation
push:
branches:
- 'main'
- 'develop'
# Trigger the workflow on pull request
pull_request: ~
# Trigger the workflow manually
workflow_dispatch: ~
# Trigger after public PR approved for CI
pull_request_target:
types: [labeled]
release:
types: [created]
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

jobs:
qa:
name: qa
Expand All @@ -28,7 +18,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
python-version: '3.12'

- name: Install Python Dependencies
run: |
Expand All @@ -42,10 +32,10 @@ jobs:

- name: Check flake8
run: flake8 .
test:
name: test
needs:
- qa

test-purepython:
env:
USE_RUST: "0"
strategy:
fail-fast: false
matrix:
Expand All @@ -62,8 +52,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install eccodes and Dependencies
id: install-dependencies

- name: Install eccodes
id: install-ecbuild
uses: ecmwf/build-package@v2
with:
self_build: false
Expand All @@ -75,21 +66,16 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
python-version: '3.12'

- name: Install Python Dependencies
- name: Install setuptools
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install pytest pytest-cov
python -m pip install -r requirements.txt
python -m pip install -r ./tests/requirements_test.txt
python -m pip install --upgrade pip setuptools

- name: Verify Source Distribution
shell: bash -eux {0}
- name: Install Polytope
run: |
python setup.py sdist
python -m pip install dist/*
python -m pip install -v .[test]

- name: Run Tests with Repository Code
env:
LD_LIBRARY_PATH: ${{ steps.install-dependencies.outputs.lib_path }}
Expand All @@ -102,25 +88,62 @@ jobs:
uses: codecov/codecov-action@v4
with:
files: coverage.xml
deploy:
needs: test
if: ${{ github.event_name == 'release' }}
name: Upload to Pypi
runs-on: ubuntu-24.04

test-rust:
env:
USE_RUST: "1"
strategy:
fail-fast: false
matrix:
name:
- ubuntu-22.04
- macos-latest
include:
- name: ubuntu-22.04
os: ubuntu-22.04
compiler_fc: gfortran
- name: macos-latest
os: macos-latest
compiler_fc: gfortran-12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v4

- name: Install eccodes and Dependencies
id: install-dependencies
uses: ecmwf/build-package@v2
with:
python-version: '3.8'
- name: Install dependencies
self_build: false
dependencies: |
ecmwf/ecbuild@develop
MathisRosenhauer/libaec@master
ecmwf/eccodes@develop

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install setuptools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
python -m pip install --upgrade pip setuptools

- name: Install rust
uses: dtolnay/rust-toolchain@stable

- name: Install Polytope
run: |
python -m pip install -v .[test]

- name: Run Tests with Repository Code
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
LD_LIBRARY_PATH: ${{ steps.install-dependencies.outputs.lib_path }}
shell: bash -eux {0}
run: |
python -m build
twine upload dist/*
DYLD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }} python -m pytest -m "not fdb" tests --cov=./ --cov-report=xml
python -m coverage report

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.xml
31 changes: 31 additions & 0 deletions .github/workflows/test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test-cd

on:
pull_request:
branches: [ "main", "develop" ]

jobs:
pypi_binwheels:
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi-binwheel.yml@feat/rust_wheels_with_clang
secrets: inherit
with:
platforms: "['ubuntu-latest','macos-latest']" #",'windows-latest']"
pyversions: "['38','39','310','311','312']"
testpypi: true
env_vars: |
{
"USE_RUST": "1",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}

pypi_purepython:
needs: pypi_binwheels
uses: ecmwf/reusable-workflows/.github/workflows/cd-pypi.yml@feat/rust_wheels_with_clang
secrets: inherit
with:
testpypi: true
env_vars: |
{
"USE_RUST": "0",
"SETUPTOOLS_RUST_CARGO_PROFILE": "release"
}
44 changes: 33 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
*.py[cod]
*.swp
**/__pycache__
.vscode
polytope.egg-info
.pytest_cache
*.grib
*.gif
*.html
*.req
*.prof
*.idx
*.grib
*.xml
site
*.pstats
*.profile
*.egg-info
*.json
*.txt
*.gz
*.so

.coverage
*.grib
*.gif
*.html
.mypy_cache
.vscode
.pytest_cache

__pycache__/
.ipynb_checkpoints/

_version.py
target/
dist/
build/

Cargo.lock
.DS_Store

site
example_eo
example_mri
.mypy_cache
*.req
polytope_python.egg-info
new_test_venv_polytope
new_venv_polytope
polytope_venv
Expand All @@ -26,6 +43,11 @@ new_updated_numpy_venv
newest-polytope-venv
serializedTree
new_polytope_venv
newest-polytope-venv
new_polytope_venv
polytope_feature/datacube/quadtree/target
venv_python3_11
venv_gj_iterator
*.json
venv_python3_11
*.txt
Expand Down
14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "polytope-python"
version = "0.0.0" # placeholder
edition = "2021"

[dependencies]
pyo3 = { version = "0.20", features = ["extension-module"] }
qhull = { git = "https://github.com/LucaCiucci/qhull-rs" }
rayon = "1.8"

[lib]
name = "quadtree"
path = "rust/lib.rs"
crate-type = ["cdylib"]
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
init:
pip install -r requirements.txt

testk:
python3 -m pytest -vsrA tests/* -k $(filter-out $@, $(MAKECMDGOALS)) -W ignore::DeprecationWarning -W ignore::FutureWarning --log-cli-level=DEBUG

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/3D_shipping_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import numpy as np
from earthkit import data

from polytope.engine.hullslicer import HullSlicer
from polytope.polytope import Polytope, Request
from polytope.shapes import Ellipsoid, Path, Select
from polytope_feature.engine.hullslicer import HullSlicer
from polytope_feature.polytope import Polytope, Request
from polytope_feature.shapes import Ellipsoid, Path, Select


class Test:
Expand Down
8 changes: 4 additions & 4 deletions examples/3D_shipping_route_wave_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import pytest
from eccodes import codes_grib_find_nearest, codes_grib_new_from_file

from polytope.datacube.backends.fdb import FDBDatacube
from polytope.engine.hullslicer import HullSlicer
from polytope.polytope import Polytope, Request
from polytope.shapes import Ellipsoid, Path, Select
from polytope_feature.datacube.backends.fdb import FDBDatacube
from polytope_feature.engine.hullslicer import HullSlicer
from polytope_feature.polytope import Polytope, Request
from polytope_feature.shapes import Ellipsoid, Path, Select
from tests.helper_functions import download_test_data


Expand Down
8 changes: 4 additions & 4 deletions examples/4D_flight_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from earthkit import data
from PIL import Image

from polytope.datacube.backends.xarray import XArrayDatacube
from polytope.engine.hullslicer import HullSlicer
from polytope.polytope import Polytope, Request
from polytope.shapes import Box, Path, Select
from polytope_feature.datacube.backends.xarray import XArrayDatacube
from polytope_feature.engine.hullslicer import HullSlicer
from polytope_feature.polytope import Polytope, Request
from polytope_feature.shapes import Box, Path, Select


class Test:
Expand Down
8 changes: 4 additions & 4 deletions examples/country_slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from earthkit import data
from shapely.geometry import shape

from polytope.datacube.backends.xarray import XArrayDatacube
from polytope.engine.hullslicer import HullSlicer
from polytope.polytope import Polytope, Request
from polytope.shapes import Polygon, Select, Union
from polytope_feature.datacube.backends.xarray import XArrayDatacube
from polytope_feature.engine.hullslicer import HullSlicer
from polytope_feature.polytope import Polytope, Request
from polytope_feature.shapes import Polygon, Select, Union


class Test:
Expand Down
8 changes: 4 additions & 4 deletions examples/cyclic_route_around_earth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import numpy as np
from earthkit import data

from polytope.datacube.backends.xarray import XArrayDatacube
from polytope.engine.hullslicer import HullSlicer
from polytope.polytope import Polytope, Request
from polytope.shapes import Box, PathSegment, Select
from polytope_feature.datacube.backends.xarray import XArrayDatacube
from polytope_feature.engine.hullslicer import HullSlicer
from polytope_feature.polytope import Polytope, Request
from polytope_feature.shapes import Box, PathSegment, Select


class Test:
Expand Down
Loading
Loading