diff --git a/.gitignore b/.gitignore
index eb5d3717..f92f673e 100755
--- a/.gitignore
+++ b/.gitignore
@@ -174,6 +174,7 @@ venv/
ENV/
env.bak/
venv.bak/
+venv-model/
# Spyder project settings
.spyderproject
diff --git a/readthedocs.yml b/.readthedocs.yaml
similarity index 82%
rename from readthedocs.yml
rename to .readthedocs.yaml
index 39368010..2ef8cbed 100755
--- a/readthedocs.yml
+++ b/.readthedocs.yaml
@@ -1,10 +1,16 @@
-# .readthedocs.yml
+# ..readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
+# Set the version of Python and other tools you might need
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.10"
+
# Build documentation in the docs_oldies/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
@@ -19,7 +25,6 @@ formats:
# Optionally set the version of Python and requirements required to build your docs_oldies
python:
- version: "3.8"
install:
- requirements: docs/requirements.txt
- method: pip
diff --git a/README.md b/README.md
index 4abd4391..04c8723e 100755
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
# Pyinterpolate
-**version 0.5** - *Mykolaiv*
+**version 0.5.1** - *Mykolaiv*
---
diff --git a/changelog.rst b/changelog.rst
index 6669c103..e7b0f6d6 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -6,12 +6,15 @@ Pyinterpolate is the Python library for **geostatistics** and **spatial statisti
Changes by date
===============
-2023-XX-XX
+2024-02-19
----------
-**version 0.5.1**
+**version 0.5.1** (*pre production development*)
* (enhancement) `interpolate_raster()` function takes `allow_approx_solutions` parameter, and it protects from `LinAlgError` that might occur if interpolation points are duplicated (due to the floating point number representation).
+* (refactoring) `calc_point_to_point_distance` function refactored to `point_distance`, changed input parameters' schema,
+* (refactoring) new selection method for unequally spaced bins: `select_values_between_lags`
+* (debug) `np.float` type casting has been changed to `float`
2023-09-16
----------
diff --git a/developer/dev_checks/debug_sandbox/check_cent_pk/check.py b/developer/dev_checks/debug_sandbox/check_cent_pk/check.py
index 7d1dcf89..2d52213c 100644
--- a/developer/dev_checks/debug_sandbox/check_cent_pk/check.py
+++ b/developer/dev_checks/debug_sandbox/check_cent_pk/check.py
@@ -170,7 +170,7 @@ def centroid_poisson_kriging(semivariogram_model: TheoreticalVariogram,
# Distances between known blocks
coordinates = kriging_data[:, :values_column_index]
- block_distances = calc_point_to_point_distance(coordinates).flatten()
+ block_distances = point_distance(coordinates, coordinates).flatten()
known_blocks_semivars = semivariogram_model.predict(block_distances)
predicted = np.array(known_blocks_semivars.reshape(n, n))
predicted = sem_to_cov(predicted, sill)
diff --git a/docs/build/doctrees/api/distance/distance.doctree b/docs/build/doctrees/api/distance/distance.doctree
index 2199d5b6..81d0a101 100644
Binary files a/docs/build/doctrees/api/distance/distance.doctree and b/docs/build/doctrees/api/distance/distance.doctree differ
diff --git a/docs/build/doctrees/api/viz/viz.doctree b/docs/build/doctrees/api/viz/viz.doctree
index 20c38a8c..4efdb93c 100644
Binary files a/docs/build/doctrees/api/viz/viz.doctree and b/docs/build/doctrees/api/viz/viz.doctree differ
diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle
index a5a494f4..2c888594 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 970d19b7..094381e1 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/A21-Directional-Semivariogram.doctree b/docs/build/doctrees/usage/tutorials/A21-Directional-Semivariogram.doctree
index c956b198..dd2cc010 100644
Binary files a/docs/build/doctrees/usage/tutorials/A21-Directional-Semivariogram.doctree and b/docs/build/doctrees/usage/tutorials/A21-Directional-Semivariogram.doctree differ
diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo
index ddd0f82b..276bf508 100644
--- a/docs/build/html/.buildinfo
+++ b/docs/build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: edf624842dc85ad7caf2922992868dbf
+config: 547607724c14a157e2d2e282259579a3
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html
index 6686759a..d27a46a2 100644
--- a/docs/build/html/_modules/index.html
+++ b/docs/build/html/_modules/index.html
@@ -8,7 +8,7 @@
- Overview: module code — Pyinterpolate 0.5.0 documentation
+ Overview: module code — Pyinterpolate 0.5.1 documentation
@@ -108,7 +108,7 @@
- Pyinterpolate 0.5.0 documentation
+ Pyinterpolate 0.5.1 documentation
@@ -417,6 +417,7 @@
All modules for which code is available
- pyinterpolate.distance.distance
- pyinterpolate.distance.gridding
+- pyinterpolate.distance.point
- pyinterpolate.idw.idw
- pyinterpolate.io.read_data
- pyinterpolate.kriging.models.block.area_to_area_poisson_kriging
@@ -481,7 +482,7 @@ All modules for which code is available
@@ -424,6 +424,8 @@ Source code for pyinterpolate.distance.distance
<
Authors
-------
1. Szymon Moliński | @SimonMolinsky
+
+
TODO: the file will be removed in version 1.0
"""
from typing import Dict, Union, Iterable
@@ -438,6 +440,8 @@
Source code for pyinterpolate.distance.distance
<
from pyinterpolate.processing.preprocessing.blocks import PointSupport
from pyinterpolate.processing.transform.transform import point_support_to_dict, block_dataframe_to_dict
+
from deprecation import deprecated
+
def _calc_b2b_dist_from_array(blocks: np.ndarray) -> Dict:
"""Function calculates distances between blocks.
@@ -725,7 +729,13 @@
Source code for pyinterpolate.distance.distance
<
return angles
-
[docs]def calc_point_to_point_distance(points_a, points_b=None):
+
[docs]@deprecated(
+
deprecated_in='0.5.1',
+
removed_in='1.0',
+
current_version='0.5.1',
+
details="Use `point_distance()` instead"
+
)
+
def calc_point_to_point_distance(points_a, points_b=None):
"""Function calculates distances between two group of points of a single group to itself.
Parameters
@@ -825,7 +835,7 @@
Source code for pyinterpolate.distance.distance
<
@@ -518,7 +518,7 @@
Community
@@ -557,7 +557,7 @@
Reviewers (JOSS)
@@ -515,7 +515,7 @@
Network
@@ -521,7 +521,7 @@
Use Cases
@@ -522,7 +522,7 @@
Development
@@ -519,7 +519,7 @@
Known Bugs
@@ -521,7 +521,7 @@ Development
@@ -534,7 +534,7 @@ Package structure
@@ -535,7 +535,7 @@ Requirements and dependencies (v 0.3.0)
@@ -517,7 +517,7 @@ Tests and contribution
@@ -438,7 +438,7 @@ Index
@@ -396,12 +396,12 @@
Pyinterpolate
-
-version 0.5.0.post1 - Mykolaiv
+
+version 0.5.1 - Mykolaiv
Note
-
The last documentation update: 2023-08-29
+
The last documentation update: 2024-02-19
Pyinterpolate is the Python library for geostatistics. The package provides access to spatial statistics tools used in various studies. This package helps you interpolate spatial data with the Kriging technique.
If you’re:
@@ -491,7 +491,7 @@ How to cite