Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI to latest packages #11

Merged
merged 3 commits into from Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .readthedocs.yml
Expand Up @@ -25,4 +25,3 @@ python:
path: .
extra_requirements:
- docs
system_packages: true
18 changes: 18 additions & 0 deletions tests/check_rasterize_tests.ipynb
@@ -0,0 +1,18 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Binary file modified tests/test_data/weighted.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_raster.py
Expand Up @@ -89,7 +89,7 @@ def test_df_to_weighted_raster_roundtrip():
}
)
ds = pt.df_to_weighted_raster(df, idxr, extra_coords=["year"])
assert np.isclose(ds.data.sel(year=2015).sum(), 3348.12920833)
assert np.isclose(ds.data.sel(year=2015).sum(), 3349.6, rtol=1e-5)

obs_df = pt.raster_to_df(ds, idxr, func="max")
pdt.assert_frame_equal(
Expand Down