Skip to content

Commit

Permalink
Merge pull request #125 from SpatioTemporal/build_matrix
Browse files Browse the repository at this point in the history
Build matrix
  • Loading branch information
NiklasPhabian committed Oct 13, 2023
2 parents 43f6862 + 8c24dda commit ed9d5ac
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 102 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
python -m pip install --upgrade pip
pip install twine
- name: Build manylinux Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.5.0
uses: RalfG/python-wheels-manylinux-build@v0.7.1
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
pre-build-command: 'sh .github/workflows/prebuild.sh' # Clone, build, install STARE
build-requirements: 'cython numpy'
- name: Publish wheels to PyPI
Expand Down
3 changes: 2 additions & 1 deletion pystare/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def to_neighbors(sids):
Returns
--------
first 3 across edges, next 9 across vertices
Examples
--------
Expand Down Expand Up @@ -1009,7 +1010,7 @@ def speedy_subset(sids_left, sids_right, values_left=None):
top_bound = pystare.spatial_clear_to_resolution(sids_right.max())
level = pystare.spatial_resolution(top_bound)
top_bound += pystare.spatial_increment_from_level(level)
bottom_bound = sids_right.min()
bottom_bound = pystare.spatial_clear_to_resolution(sids_right.min())
candidate_sids = sids_left[(sids_left >= bottom_bound) * (sids_left <= top_bound)]
if values_left is not None:
values = values_left[(sids_left >= bottom_bound) * (sids_left <= top_bound)]
Expand Down

0 comments on commit ed9d5ac

Please sign in to comment.