Skip to content

Commit

Permalink
Feature/h3ronpy (#75)
Browse files Browse the repository at this point in the history
* Refactor h3_utils to use h3ronpy

* Update lib.py for use of h3ronpy

* Update ValueError for invalid fields

* Add documentation on bug

* Fix issue with Point generation

h3ronpy currently has a bug with cells_to_wkb_points which returns matching coordinates.

* Integrate release from h3ronpy that solves cells_to_wkb_points

* Remove looping on geometries

* Update user documentation

* Update user doc notebooks (#76)

* create stac catalog from sample kenya data

* testing metadata

* update metadata files

* typo

* Update catalog with link to self and title based on stac-check best practice

* Move METADATA to space2stats_ingest

* fix sources link

* rewrite catalog with self link and item titles

* Rename duplicated variable gdf to adm_gdf

* Corrected the color breaks

* Adapt based on h3ronpy and adapt colormap

* Change formatting, ensure clear runs, and remove unused imports

* Add nbqa pre-commit for notebooks

---------

Co-authored-by: Andres Chamorro <[email protected]>

* Add notebook dependency group and update python library example

* Update notebook based on nbqa

* Remove unused dependencies in core

* Update lock file

* Install h3ronpy from github while waiting for release

* Fix import for new h3ronpy version

* Update types of h3_ids from h3ronpy

* Update pyproject to use wheel from s3

* Update python version

---------

Co-authored-by: Andres Chamorro <[email protected]>
Co-authored-by: Benjamin P. Stewart <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2024
1 parent b98f10f commit f559e92
Show file tree
Hide file tree
Showing 14 changed files with 4,860 additions and 1,068 deletions.
22 changes: 21 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,24 @@ repos:
files: ^space2stats_api/
exclude: ^space2stats/env/
additional_dependencies:
- types-requests
- types-requests

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.7
hooks:
- id: nbqa-ruff
args: ["--fix"]
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
- id: nbqa-isort
args: ["--profile=black"]
additional_dependencies: [isort==5.6.4]
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
- id: nbqa-black
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
- id: nbqa-pyupgrade
args: ["--py37-plus"]
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
Loading

0 comments on commit f559e92

Please sign in to comment.