Skip to content

Commit 15f4907

Browse files
authored
Reorganize titiler-cmr utilities (#7)
1 parent aadd1ac commit 15f4907

File tree

16 files changed

+1180
-1070
lines changed

16 files changed

+1180
-1070
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [main]
6-
# Comment out unless for testing
7-
# pull_request:
8-
# branches: [main]
6+
pull_request:
7+
branches: [main]
98
workflow_dispatch:
109

1110
permissions:
@@ -40,12 +39,14 @@ jobs:
4039

4140
- name: Upload artifact
4241
id: deployment
42+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4343
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
4444
with:
4545
path: ./site
4646
retention-days: 1
4747

4848
deploy:
49+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4950
environment:
5051
name: github-pages
5152
url: ${{ steps.deployment.outputs.page_url }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,5 @@ tests/.hypothesis
9090
.hypothesis/
9191

9292
docs/_site
93+
site
9394
.mypy_cache

docs/api-reference/datacube-benchmark.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,4 @@
1010

1111
::: datacube_benchmark.benchmark_access_patterns
1212

13-
::: datacube_benchmark.benchmark_viewport
14-
15-
::: datacube_benchmark.benchmark_tileset
16-
17-
::: datacube_benchmark.benchmark_statistics
18-
1913
::: datacube_benchmark.types.TARGET_SHAPES
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Dynamic tiling
22

3-
::: datacube_benchmark.tiling_benchmark_summary
3+
::: datacube_benchmark.titiler.tiling_benchmark_summary
44

5-
::: datacube_benchmark.TiTilerCMRBenchmarker
5+
::: datacube_benchmark.titiler.TiTilerCMRBenchmarker
66

7-
::: datacube_benchmark.tiling.DatasetParams
7+
::: datacube_benchmark.titiler.DatasetParams
88

9-
::: datacube_benchmark.tiling.get_surrounding_tiles
9+
::: datacube_benchmark.titiler.get_surrounding_tiles
1010

11-
::: datacube_benchmark.tiling.fetch_tile
11+
::: datacube_benchmark.titiler.fetch_tile
1212

13-
::: datacube_benchmark.tiling.get_tileset_tiles
13+
::: datacube_benchmark.titiler.get_tileset_tiles
1414

15-
::: datacube_benchmark.tiling.create_bbox_feature
15+
::: datacube_benchmark.titiler.create_bbox_feature

docs/visualization/titiler/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Both `titiler-multidim` and `titiler.eopf` are built on `titiler.xarray`, levera
3737
#### **titiler.core → titiler-cmr application**
3838

3939
`titiler-cmr` is built directly on `titiler.core` rather than `titiler.xarray` due to the development timeline of the two projects. In the future, we anticipate
40-
`titiler-cmr` will depend on `titiler.xarray`, with progress tracked by [titiler-cmr issue #35](https://github.com/developmentseed/titiler-cmr/issues/35)
40+
`titiler-cmr` will depend on `titiler.xarray`, with progress tracked by [titiler-cmr issue #35](https://github.com/developmentseed/titiler-cmr/issues/35).
4141

4242
---
4343

docs/visualization/titiler/titiler-cmr/titiler-cmr-benchmark.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
},
2222
{
2323
"cell_type": "code",
24-
"execution_count": 4,
24+
"execution_count": null,
2525
"id": "18a0edb6-7220-4910-854d-3b07d4e4f417",
2626
"metadata": {},
2727
"outputs": [],
2828
"source": [
2929
"import asyncio\n",
3030
"import pandas as pd\n",
3131
"\n",
32-
"from datacube_benchmark.titiler_cmr_benchmark import (\n",
32+
"from datacube_benchmark.titiler import (\n",
3333
" DatasetParams,\n",
3434
" benchmark_viewport,\n",
3535
" tiling_benchmark_summary,\n",
@@ -1791,9 +1791,9 @@
17911791
],
17921792
"metadata": {
17931793
"kernelspec": {
1794-
"display_name": "datacube-titiler",
1794+
"display_name": ".venv",
17951795
"language": "python",
1796-
"name": "datacube-titiler"
1796+
"name": "python3"
17971797
},
17981798
"language_info": {
17991799
"codemirror_mode": {

docs/visualization/titiler/titiler-cmr/titiler-cmr-statistics-benchmark.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
},
2323
{
2424
"cell_type": "code",
25-
"execution_count": 1,
25+
"execution_count": null,
2626
"id": "18a0edb6-7220-4910-854d-3b07d4e4f417",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
3030
"import pandas as pd\n",
3131
"import json\n",
3232
"\n",
33-
"from datacube_benchmark.titiler_cmr_benchmark import (\n",
33+
"from datacube_benchmark.titiler import (\n",
3434
" DatasetParams,\n",
3535
" benchmark_statistics,\n",
3636
" create_bbox_feature,\n",

packages/datacube-benchmark/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ requires-python = ">=3.12"
1010
dependencies = [
1111
"arro3-core>=0.5.1",
1212
"dask>=2025.5.1",
13+
"geojson-pydantic>=2.0.0",
1314
"hdf5plugin>=5.1.0",
15+
"httpx>=0.28.1",
16+
"morecantile>=6.2.0",
1417
"numcodecs>=0.16.1",
1518
"obstore>=0.6.0",
1619
"pint>=0.24.4",
20+
"psutil>=7.0.0",
1721
"pyarrow>=20.0.0",
1822
"rich>=14.0.0",
1923
"s3fs>=0.4.2",

packages/datacube-benchmark/src/datacube_benchmark/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
from .config import Config
99
from .query import benchmark_zarr_array, benchmark_access_patterns
1010
from .open import benchmark_dataset_open
11-
from .titiler_cmr_benchmark import (
12-
benchmark_viewport,
13-
benchmark_tileset,
14-
benchmark_statistics,
15-
tiling_benchmark_summary,
16-
TiTilerCMRBenchmarker,
17-
)
1811

1912
import numpy as np
2013

@@ -27,11 +20,6 @@
2720
"benchmark_zarr_array",
2821
"benchmark_access_patterns",
2922
"benchmark_dataset_open",
30-
"TiTilerCMRBenchmarker",
31-
"benchmark_viewport",
32-
"benchmark_tileset",
33-
"benchmark_statistics",
34-
"tiling_benchmark_summary",
3523
]
3624

3725

packages/datacube-benchmark/src/datacube_benchmark/tiling/__init__.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)