Skip to content

Commit

Permalink
update CI to latest packages (#11)
Browse files Browse the repository at this point in the history
* dummy commit to test ci

* update tests with latest environment and add checking notebook

* try removing the rtd arg
  • Loading branch information
gidden committed Mar 1, 2024
1 parent dfbbb37 commit 3d07c4f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
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

0 comments on commit 3d07c4f

Please sign in to comment.