diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8bc3ec8d..41c5307f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,16 @@ Changes - from version >= 1.x ============================= +2025-12-26 +---------- + +**version 1.2.1** + +* [enhancement] `Blocks` can handle missing geometries (geometry as `None` or `NaN`) +* [debug] `Blocks` default value column is `block_values`, and `PointSupport` default value column is `values` (to avoiding naming collisions during the join operation) +* [debug] `Blocks` object default index is created when it is not provided by the user +* [enhancement] `verbose` parameter for `PoissonKrigingInput` class that controls progress bar when calculating point support distances between neighbors + 2025-11-23 ---------- diff --git a/LICENSE.md b/LICENSE.md index e799e0a7..9c480493 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2018-2025 Pyinterpolate Maintainers +Copyright (c) 2018-2026 Pyinterpolate Maintainers ------------------------------------------------- All rights reserved to Pyinterpolate Maintainers: Szymon Moliński (@SimonMolinsky), diff --git a/README.md b/README.md index e91e8a2a..b46785bb 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,13 @@ # Pyinterpolate -**version 1.2.0** +**version 1.2.1** ![Logo](https://raw.githubusercontent.com/DataverseLabs/pyinterpolate/refs/heads/main/pyinterpolate-banner.png) ## Important notice The package was updated to version 1.0 in June 2025. There are breaking API changes, so please, refer to the [CHANGELOG](https://github.com/DataverseLabs/pyinterpolate/blob/main/CHANGELOG.rst) to know more about the changes. -Right now, the package in version 1.0.0 is in the **beta** stage, which means that it is stable but be careful with the production use. There might be some minor bugs, and large swaths of code are not optimized yet. If you find any bugs, please report them in the [issue tracker](https://github.com/DataverseLabs/pyinterpolate/issues). ## Citation diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle index b08c50b0..dbf2fa3c 100644 Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ diff --git a/docs/build/doctrees/index.doctree b/docs/build/doctrees/index.doctree index 0c35fbfd..b15c2e1e 100644 Binary files a/docs/build/doctrees/index.doctree and b/docs/build/doctrees/index.doctree differ diff --git a/docs/build/doctrees/usage/tutorials/functional/2-1-directional-semivariogram.doctree b/docs/build/doctrees/usage/tutorials/functional/2-1-directional-semivariogram.doctree index 16cc4471..f2d63292 100644 Binary files a/docs/build/doctrees/usage/tutorials/functional/2-1-directional-semivariogram.doctree and b/docs/build/doctrees/usage/tutorials/functional/2-1-directional-semivariogram.doctree differ diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo index e6f4f87b..b0029097 100644 --- a/docs/build/html/.buildinfo +++ b/docs/build/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file records the configuration used when building these files. When it is not found, a full rebuild will be done. -config: a6474bb95393ed18c268cf382762884a +config: 914669cf9f5b5b2a2f731c9385135a15 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/build/html/.buildinfo.bak b/docs/build/html/.buildinfo.bak new file mode 100644 index 00000000..e6f4f87b --- /dev/null +++ b/docs/build/html/.buildinfo.bak @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. +config: a6474bb95393ed18c268cf382762884a +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html index 16e71a14..ce611db9 100644 --- a/docs/build/html/_modules/index.html +++ b/docs/build/html/_modules/index.html @@ -7,7 +7,7 @@ - Overview: module code — pyinterpolate 1.1.0 documentation + Overview: module code — pyinterpolate 1.2.0 documentation @@ -38,7 +38,7 @@ - + @@ -111,7 +111,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/_modules/pyinterpolate/core/data_models/blocks.html b/docs/build/html/_modules/pyinterpolate/core/data_models/blocks.html index b81e99ed..a2bd404f 100644 --- a/docs/build/html/_modules/pyinterpolate/core/data_models/blocks.html +++ b/docs/build/html/_modules/pyinterpolate/core/data_models/blocks.html @@ -7,7 +7,7 @@ - pyinterpolate.core.data_models.blocks — pyinterpolate 1.1.0 documentation + pyinterpolate.core.data_models.blocks — pyinterpolate 1.2.0 documentation @@ -38,7 +38,7 @@ - + @@ -111,7 +111,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

@@ -441,8 +441,7 @@

Source code for pyinterpolate.core.data_models.blocks

import geopandas as gpd import numpy as np import pandas as pd - -from shapely.geometry import Polygon +from shapely import MultiPolygon from pyinterpolate.distance.angular import calc_angles from pyinterpolate.distance.point import point_distance @@ -645,10 +644,17 @@

Source code for pyinterpolate.core.data_models.blocks

self.ds = ds.copy(deep=True) else: if value_column_name is None: - value_column_name = 'values' - self.ds = join_any_geometry_and_values(geometry=geometries, - values=values, - values_column_name=value_column_name) + value_column_name = 'block_value' + self.ds = join_any_geometry_and_values( + geometry=geometries, + values=values, + values_column_name=value_column_name + ) + if index_column_name is None: + index_column_name = 'block_index' + + self.ds.index.name = index_column_name + self.ds.reset_index(inplace=True) self.value_column_name = value_column_name self.index_column_name = index_column_name @@ -1169,7 +1175,7 @@

Source code for pyinterpolate.core.data_models.blocks

present. """ ds = geometries.apply( - lambda x: x if isinstance(x, Polygon) else largest_geometry(x) + lambda x: largest_geometry(x) if isinstance(x, MultiPolygon) else x ) return ds
diff --git a/docs/build/html/_sources/index.rst.txt b/docs/build/html/_sources/index.rst.txt index 7eb99e48..715b96d5 100644 --- a/docs/build/html/_sources/index.rst.txt +++ b/docs/build/html/_sources/index.rst.txt @@ -10,17 +10,16 @@ Pyinterpolate :width: 400 :alt: Pyinterpolate Logo -**version 1.1.0** +**version 1.2.1** ----------------- .. note:: - The last documentation update: *2025-11-08* + The last documentation update: *2025-12-26* Important notice ................ The package was updated to version 1.0 in June 2025. There are breaking API changes, so please, refer to the changelog, to know more about the changes. -Right now, the package in version 1.0.0 is in the **beta** stage, which means that it is stable but be careful with the production use. There might be some minor bugs, and large swaths of code are not optimized yet. If you find any bugs, please report them in the `Github issue tracker `_. Citation -------- diff --git a/docs/build/html/_static/documentation_options.js b/docs/build/html/_static/documentation_options.js index c891ba62..3f423940 100644 --- a/docs/build/html/_static/documentation_options.js +++ b/docs/build/html/_static/documentation_options.js @@ -1,5 +1,5 @@ const DOCUMENTATION_OPTIONS = { - VERSION: '1.1.0', + VERSION: '1.2.0', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/build/html/api/api.html b/docs/build/html/api/api.html index 3aff83b9..046b13b6 100644 --- a/docs/build/html/api/api.html +++ b/docs/build/html/api/api.html @@ -8,7 +8,7 @@ - API — pyinterpolate 1.1.0 documentation + API — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -116,7 +116,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/changes.html b/docs/build/html/api/changes.html index bbd74622..dfd86b22 100644 --- a/docs/build/html/api/changes.html +++ b/docs/build/html/api/changes.html @@ -8,7 +8,7 @@ - Changes between version 0.x and 1.x — pyinterpolate 1.1.0 documentation + Changes between version 0.x and 1.x — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/core/core.html b/docs/build/html/api/core/core.html index f42250b6..eada43aa 100644 --- a/docs/build/html/api/core/core.html +++ b/docs/build/html/api/core/core.html @@ -8,7 +8,7 @@ - Core data structures — pyinterpolate 1.1.0 documentation + Core data structures — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/core/pipelines.html b/docs/build/html/api/core/pipelines.html index 3219e136..a36e34fb 100644 --- a/docs/build/html/api/core/pipelines.html +++ b/docs/build/html/api/core/pipelines.html @@ -8,7 +8,7 @@ - Pipelines — pyinterpolate 1.1.0 documentation + Pipelines — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/distance/distance.html b/docs/build/html/api/distance/distance.html index 6a7963e8..3890e0aa 100644 --- a/docs/build/html/api/distance/distance.html +++ b/docs/build/html/api/distance/distance.html @@ -8,7 +8,7 @@ - Distance — pyinterpolate 1.1.0 documentation + Distance — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/evaluate/evaluate.html b/docs/build/html/api/evaluate/evaluate.html index f67b1443..3d619b43 100644 --- a/docs/build/html/api/evaluate/evaluate.html +++ b/docs/build/html/api/evaluate/evaluate.html @@ -8,7 +8,7 @@ - Models evaluation — pyinterpolate 1.1.0 documentation + Models evaluation — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -116,7 +116,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/idw/idw.html b/docs/build/html/api/idw/idw.html index d345036d..80cd751f 100644 --- a/docs/build/html/api/idw/idw.html +++ b/docs/build/html/api/idw/idw.html @@ -8,7 +8,7 @@ - Inverse Distance Weighting (IDW) — pyinterpolate 1.1.0 documentation + Inverse Distance Weighting (IDW) — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/kriging/block_kriging.html b/docs/build/html/api/kriging/block_kriging.html index a51a6500..58d64fb2 100644 --- a/docs/build/html/api/kriging/block_kriging.html +++ b/docs/build/html/api/kriging/block_kriging.html @@ -8,7 +8,7 @@ - Block and Poisson Kriging — pyinterpolate 1.1.0 documentation + Block and Poisson Kriging — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/kriging/point_kriging.html b/docs/build/html/api/kriging/point_kriging.html index 550e6d6c..0db3910f 100644 --- a/docs/build/html/api/kriging/point_kriging.html +++ b/docs/build/html/api/kriging/point_kriging.html @@ -8,7 +8,7 @@ - Point Kriging — pyinterpolate 1.1.0 documentation + Point Kriging — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/semivariogram/deconvolution.html b/docs/build/html/api/semivariogram/deconvolution.html index 7cda479d..97e0c35d 100644 --- a/docs/build/html/api/semivariogram/deconvolution.html +++ b/docs/build/html/api/semivariogram/deconvolution.html @@ -8,7 +8,7 @@ - Semivariogram Deconvolution — pyinterpolate 1.1.0 documentation + Semivariogram Deconvolution — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -116,7 +116,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/semivariogram/experimental.html b/docs/build/html/api/semivariogram/experimental.html index 438093bc..363c8383 100644 --- a/docs/build/html/api/semivariogram/experimental.html +++ b/docs/build/html/api/semivariogram/experimental.html @@ -8,7 +8,7 @@ - Experimental Semivariance and Covariance — pyinterpolate 1.1.0 documentation + Experimental Semivariance and Covariance — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -116,7 +116,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/semivariogram/indicator.html b/docs/build/html/api/semivariogram/indicator.html index 2c049194..90ce2e47 100644 --- a/docs/build/html/api/semivariogram/indicator.html +++ b/docs/build/html/api/semivariogram/indicator.html @@ -8,7 +8,7 @@ - Indicator Semivariogram — pyinterpolate 1.1.0 documentation + Indicator Semivariogram — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/semivariogram/theoretical.html b/docs/build/html/api/semivariogram/theoretical.html index 458f930d..50d068e6 100644 --- a/docs/build/html/api/semivariogram/theoretical.html +++ b/docs/build/html/api/semivariogram/theoretical.html @@ -8,7 +8,7 @@ - Theoretical Semivariogram — pyinterpolate 1.1.0 documentation + Theoretical Semivariogram — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/api/viz/raster.html b/docs/build/html/api/viz/raster.html index 10e7056f..19d4d723 100644 --- a/docs/build/html/api/viz/raster.html +++ b/docs/build/html/api/viz/raster.html @@ -8,7 +8,7 @@ - Visualization — pyinterpolate 1.1.0 documentation + Visualization — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/community/community.html b/docs/build/html/community/community.html index 7160208c..ef457ebb 100644 --- a/docs/build/html/community/community.html +++ b/docs/build/html/community/community.html @@ -8,7 +8,7 @@ - Community — pyinterpolate 1.1.0 documentation + Community — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/community/community/contributors.html b/docs/build/html/community/community/contributors.html index 3081e063..682f4ad4 100644 --- a/docs/build/html/community/community/contributors.html +++ b/docs/build/html/community/community/contributors.html @@ -8,7 +8,7 @@ - Contributors — pyinterpolate 1.1.0 documentation + Contributors — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/community/community/forum.html b/docs/build/html/community/community/forum.html index 09efaf3c..d400ff71 100644 --- a/docs/build/html/community/community/forum.html +++ b/docs/build/html/community/community/forum.html @@ -8,7 +8,7 @@ - Network — pyinterpolate 1.1.0 documentation + Network — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/community/community/use_cases.html b/docs/build/html/community/community/use_cases.html index c46bd66e..fb1f8c5d 100644 --- a/docs/build/html/community/community/use_cases.html +++ b/docs/build/html/community/community/use_cases.html @@ -8,7 +8,7 @@ - Use Cases — pyinterpolate 1.1.0 documentation + Use Cases — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/contributor/development.html b/docs/build/html/contributor/development.html index 708f9bb8..a4afeb69 100644 --- a/docs/build/html/contributor/development.html +++ b/docs/build/html/contributor/development.html @@ -8,7 +8,7 @@ - Development — pyinterpolate 1.1.0 documentation + Development — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/contributor/development/bugs.html b/docs/build/html/contributor/development/bugs.html index 3cc5791b..35bd2df1 100644 --- a/docs/build/html/contributor/development/bugs.html +++ b/docs/build/html/contributor/development/bugs.html @@ -8,7 +8,7 @@ - Known Bugs — pyinterpolate 1.1.0 documentation + Known Bugs — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -113,7 +113,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/contributor/development/development.html b/docs/build/html/contributor/development/development.html index edd43328..a5da99cf 100644 --- a/docs/build/html/contributor/development/development.html +++ b/docs/build/html/contributor/development/development.html @@ -8,7 +8,7 @@ - Development — pyinterpolate 1.1.0 documentation + Development — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/contributor/development/package.html b/docs/build/html/contributor/development/package.html index fd0436c3..11aada72 100644 --- a/docs/build/html/contributor/development/package.html +++ b/docs/build/html/contributor/development/package.html @@ -8,7 +8,7 @@ - Package structure — pyinterpolate 1.1.0 documentation + Package structure — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/contributor/development/requirements.html b/docs/build/html/contributor/development/requirements.html index 6d883748..57882cff 100644 --- a/docs/build/html/contributor/development/requirements.html +++ b/docs/build/html/contributor/development/requirements.html @@ -8,7 +8,7 @@ - Requirements and dependencies (version >= 1) — pyinterpolate 1.1.0 documentation + Requirements and dependencies (version >= 1) — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/contributor/development/tests_and_contribution.html b/docs/build/html/contributor/development/tests_and_contribution.html index 793b0460..460eb1a2 100644 --- a/docs/build/html/contributor/development/tests_and_contribution.html +++ b/docs/build/html/contributor/development/tests_and_contribution.html @@ -8,7 +8,7 @@ - Tests and contribution — pyinterpolate 1.1.0 documentation + Tests and contribution — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -114,7 +114,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/genindex.html b/docs/build/html/genindex.html index f05ef916..05aa7759 100644 --- a/docs/build/html/genindex.html +++ b/docs/build/html/genindex.html @@ -7,7 +7,7 @@ - Index — pyinterpolate 1.1.0 documentation + Index — pyinterpolate 1.2.0 documentation @@ -38,7 +38,7 @@ - + @@ -111,7 +111,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

diff --git a/docs/build/html/index.html b/docs/build/html/index.html index 200d81c3..48e41bcd 100644 --- a/docs/build/html/index.html +++ b/docs/build/html/index.html @@ -8,7 +8,7 @@ - Pyinterpolate — pyinterpolate 1.1.0 documentation + Pyinterpolate — pyinterpolate 1.2.0 documentation @@ -39,7 +39,7 @@ - + @@ -115,7 +115,7 @@ -

pyinterpolate 1.1.0 documentation

+

pyinterpolate 1.2.0 documentation

@@ -406,16 +406,15 @@

Pyinterpolate#

Pyinterpolate Logo -
-

version 1.1.0#

+
+

version 1.2.1#

Note

-

The last documentation update: 2025-11-08

+

The last documentation update: 2025-12-26

Important notice#

-

The package was updated to version 1.0 in June 2025. There are breaking API changes, so please, refer to the changelog, to know more about the changes. -Right now, the package in version 1.0.0 is in the beta stage, which means that it is stable but be careful with the production use. There might be some minor bugs, and large swaths of code are not optimized yet. If you find any bugs, please report them in the Github issue tracker.

+

The package was updated to version 1.0 in June 2025. There are breaking API changes, so please, refer to the changelog, to know more about the changes.

@@ -511,7 +510,7 @@

Contents