Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq committed Nov 22, 2024
1 parent e2c66c9 commit 02ec20b
Show file tree
Hide file tree
Showing 8 changed files with 2,035 additions and 1,225 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ repos:
rev: "v4.6.0"
hooks:
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
Expand Down
13 changes: 13 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,16 @@ Datasets
general.Dataset
maxar.open_browse
maxar.plot_browse


IO
--

.. currentmodule:: coincident.io

.. autosummary::
:toctree: generated/

sliderule.subset_gedi02a
sliderule.subset_atl06
sliderule.sample_3dep
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@
always_document_param_types = True
# autodoc_typehints = "none"
nb_execution_mode = "auto" # off, on
nb_execution_excludepatterns = ["sliderule.ipynb"]
1 change: 1 addition & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ This section contains Jupyter Notebooks with narrative workflows using the
quickstart
cascading_search
sliderule
```
483 changes: 483 additions & 0 deletions docs/examples/sliderule.ipynb

Large diffs are not rendered by default.

2,756 changes: 1,533 additions & 1,223 deletions pixi.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ docs = [
"myst-nb",
"myst_parser>=0.13",
"pydata-sphinx-theme>=0.16.0,<0.17",
#"rpds-py>=0.21.0,<0.22",
"sphinx>=7.0",
"sphinx_autodoc_typehints",
"sphinx_copybutton",
Expand Down Expand Up @@ -120,7 +121,7 @@ report.exclude_also = [
]

[tool.codespell]
skip="pixi.lock"
skip="pixi.lock,docs/examples/sliderule.ipynb"

[tool.mypy]
files = ["src", "tests"]
Expand Down
2 changes: 1 addition & 1 deletion src/coincident/io/sliderule.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _granule_from_assets(assets: gpd.GeoDataFrame) -> str:
# NOTE: change to while loop in case tons of assets?
for _k, v in assets.items():
if v.get("roles") == "data":
granule = Path.name(v.get("href"))
granule = Path(v.get("href")).name

return granule

Expand Down

0 comments on commit 02ec20b

Please sign in to comment.