Skip to content

Commit ff6ce4e

Browse files
Merge pull request #418 from DataverseLabs/417-calculate-distances---revision-for-version-10
417 calculate distances revision for version 10
2 parents 517ff51 + 438071b commit ff6ce4e

File tree

122 files changed

+2379
-1581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2379
-1581
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ venv/
174174
ENV/
175175
env.bak/
176176
venv.bak/
177+
venv-model/
177178

178179
# Spyder project settings
179180
.spyderproject

readthedocs.yml renamed to .readthedocs.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
# .readthedocs.yml
1+
# ..readthedocs.yaml
22
# Read the Docs configuration file
33
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
44

55
# Required
66
version: 2
77

8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.10"
13+
814
# Build documentation in the docs_oldies/ directory with Sphinx
915
sphinx:
1016
configuration: docs/source/conf.py
@@ -19,7 +25,6 @@ formats:
1925

2026
# Optionally set the version of Python and requirements required to build your docs_oldies
2127
python:
22-
version: "3.8"
2328
install:
2429
- requirements: docs/requirements.txt
2530
- method: pip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Pyinterpolate
66

7-
**version 0.5** - *Mykolaiv*
7+
**version 0.5.1** - *Mykolaiv*
88

99
---
1010

changelog.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ Pyinterpolate is the Python library for **geostatistics** and **spatial statisti
66
Changes by date
77
===============
88

9-
2023-XX-XX
9+
2024-02-19
1010
----------
1111

12-
**version 0.5.1**
12+
**version 0.5.1** (*pre production development*)
1313

1414
* (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).
15+
* (refactoring) `calc_point_to_point_distance` function refactored to `point_distance`, changed input parameters' schema,
16+
* (refactoring) new selection method for unequally spaced bins: `select_values_between_lags`
17+
* (debug) `np.float` type casting has been changed to `float`
1518

1619
2023-09-16
1720
----------

developer/dev_checks/debug_sandbox/check_cent_pk/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def centroid_poisson_kriging(semivariogram_model: TheoreticalVariogram,
170170

171171
# Distances between known blocks
172172
coordinates = kriging_data[:, :values_column_index]
173-
block_distances = calc_point_to_point_distance(coordinates).flatten()
173+
block_distances = point_distance(coordinates, coordinates).flatten()
174174
known_blocks_semivars = semivariogram_model.predict(block_distances)
175175
predicted = np.array(known_blocks_semivars.reshape(n, n))
176176
predicted = sem_to_cov(predicted, sill)
9.51 KB
Binary file not shown.
-4.86 KB
Binary file not shown.
3.62 KB
Binary file not shown.

docs/build/doctrees/index.doctree

-30 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)