xarray_sql 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xarray_sql-0.3.2/AGENTS.md +37 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/Cargo.lock +407 -415
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/Cargo.toml +10 -6
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/PKG-INFO +84 -6
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/README.md +82 -4
- xarray_sql-0.3.2/benchmarks/geospatial/01_ndvi.py +149 -0
- xarray_sql-0.3.2/benchmarks/geospatial/02_climatology.py +137 -0
- xarray_sql-0.3.2/benchmarks/geospatial/03_zonal_mean.py +132 -0
- xarray_sql-0.3.2/benchmarks/geospatial/04_anomaly.py +144 -0
- xarray_sql-0.3.2/benchmarks/geospatial/05_forecast_skill.py +200 -0
- xarray_sql-0.3.2/benchmarks/geospatial/06_zonal_vector.py +175 -0
- xarray_sql-0.3.2/benchmarks/geospatial/07_reproject_udf.py +196 -0
- xarray_sql-0.3.2/benchmarks/geospatial/08_regrid_weights.py +228 -0
- xarray_sql-0.3.2/benchmarks/geospatial/09_warp.py +292 -0
- xarray_sql-0.3.2/benchmarks/geospatial/README.md +106 -0
- xarray_sql-0.3.2/benchmarks/geospatial/_harness.py +276 -0
- xarray_sql-0.3.2/benchmarks/geospatial/perf_summary.py +103 -0
- xarray_sql-0.3.2/benchmarks/geospatial/run_all.sh +37 -0
- xarray_sql-0.3.2/benchmarks/geospatial/run_perf.sh +44 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/docs/examples.md +28 -6
- xarray_sql-0.3.2/docs/geospatial.md +474 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/pyproject.toml +1 -1
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/src/lib.rs +328 -42
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/test_ds.py +128 -9
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/test_reader.py +18 -18
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/test_sql.py +113 -0
- xarray_sql-0.3.2/tests/test_stats.py +124 -0
- xarray_sql-0.3.2/tests/test_to_dataset_perf.py +115 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/df.py +23 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/ds.py +128 -34
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/reader.py +9 -1
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/zensical.toml +1 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/.gitignore +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/LICENSE +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/docs/assets/logo.svg +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/docs/contributing.md +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/docs/index.md +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/docs/reference/xarray_sql.md +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/__init__.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/conftest.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/test_cft.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/tests/test_df.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/__init__.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/cftime.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/core.py +0 -0
- {xarray_sql-0.3.0 → xarray_sql-0.3.2}/xarray_sql/sql.py +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Guidance for contributors (including AI assistants) working on `xarray-sql`. It
|
|
4
|
+
summarizes recurring maintainer review feedback so changes land clean.
|
|
5
|
+
|
|
6
|
+
## Documentation and comments
|
|
7
|
+
|
|
8
|
+
- Keep docstrings and comments self-contained. Do **not** put GitHub issue or PR
|
|
9
|
+
numbers in docstrings or code comments; a reader should not need the issue
|
|
10
|
+
tracker to understand the code. Issue references belong in the commit message
|
|
11
|
+
and PR description (e.g. `Closes #189`), not in the source.
|
|
12
|
+
- Do not reference the review conversation, chat, or "the reporter" in comments.
|
|
13
|
+
Describe the behavior, not how it came up.
|
|
14
|
+
|
|
15
|
+
## API surface
|
|
16
|
+
|
|
17
|
+
- Mark internal helpers private with a leading underscore when they are not part
|
|
18
|
+
of the public API.
|
|
19
|
+
|
|
20
|
+
## Tests
|
|
21
|
+
|
|
22
|
+
- Test the public contract (values, dims, coords, attrs), not internal call
|
|
23
|
+
counts or private classes, so the suite survives refactors.
|
|
24
|
+
- Avoid redundant tests: if a public-path test already covers a behavior, do not
|
|
25
|
+
add a second lower-level test for the same thing.
|
|
26
|
+
- Make query results deterministic with `ORDER BY` so assertions do not have to
|
|
27
|
+
re-sort the output.
|
|
28
|
+
- Do not pass `dims=` to `to_dataset()` when inference already resolves them.
|
|
29
|
+
Reserve explicit `dims=` / `template=` for genuinely ambiguous cases (multiple
|
|
30
|
+
registered Datasets, or a test that is specifically exercising those
|
|
31
|
+
arguments).
|
|
32
|
+
|
|
33
|
+
## Imports
|
|
34
|
+
|
|
35
|
+
- Keep imports at the top of the file. Assume transitive dependencies are safe
|
|
36
|
+
to import non-locally, rather than deferring imports into functions to avoid
|
|
37
|
+
a dependency.
|