Skip to content

Commit cb4f3c2

Browse files
authored
quickfix normalized grid in modeler (#40)
1 parent 1edd1fc commit cb4f3c2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

py3dinterpolations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""quick 3D interpolation with python"""
22

33
# Version
4-
__version__ = "0.3.0"
4+
__version__ = "0.3.1"
55

66
# Credits
77
__author__ = "Giorgio Caizzi"

py3dinterpolations/modelling/modeler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def predict(self, **kwargs) -> np.ndarray:
7878
"""
7979
# make predictions on normalized grid if normalization was applied
8080
if "normalization" in self.griddata.preprocessor_params.keys():
81-
grids_arrays = self.grid3d.grid
82-
else:
8381
grids_arrays = self.grid3d.normalized_grid
82+
else:
83+
grids_arrays = self.grid3d.grid
8484

8585
# predict
8686
interpolated, variance = self.model.predict(

setup.py

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

99
setup(
1010
name="py3dinterpolations",
11-
version="0.3.0",
11+
version="0.3.1",
1212
description="quick 3D interpolation with python",
1313
long_description_content_type="text/markdown",
1414
long_description=long_description,

0 commit comments

Comments
 (0)