-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
- remaining testing warnings to address
- https://github.com/pysal/tobler/actions/runs/19931278619/job/57143735189#step:8:82
-
AstropyUserWarning- probably can catch in testing itself
-
UserWarning2x- still not sure if this is something happening inside codebase or can be caught/ignored in tests
-
NodataWarning- can probably be caught/ignored in tests
-
SettingWithCopyWarning- need to find where exactly this is happening in codebase and fix
=============================== warnings summary ===============================
tobler/tests/test_pycno.py::test_custom_index
/home/runner/micromamba/envs/test/lib/python3.12/site-packages/astropy/convolution/convolve.py:428: AstropyUserWarning: nan_treatment='interpolate', however, NaN values detected post convolution. A contiguous region of NaN values, larger than the kernel size, are present in the input array. Increase the kernel size to avoid this.
warnings.warn(
tobler/tests/test_utils.py::test_h3fy_diff_crs
tobler/tests/test_utils.py::test_h3_multipoly
/home/runner/micromamba/envs/test/lib/python3.12/site-packages/pyproj/crs/crs.py:1295: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
proj = self._crs.to_proj4(version=version)
tobler/tests/test_model.py::test_glm_poisson
/home/runner/micromamba/envs/test/lib/python3.12/site-packages/rasterstats/io.py:335: NodataWarning: Setting nodata to -999; specify nodata explicitly
warnings.warn(
tobler/tests/test_model.py::test_glm_poisson
/home/runner/micromamba/envs/test/lib/python3.12/site-packages/geopandas/geodataframe.py:1968: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
super().__setitem__(key, value)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
cc @knaaptime