Skip to content

Commit

Permalink
quickfix normalized grid in modeler (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
giocaizzi committed Jul 22, 2023
1 parent 1edd1fc commit cb4f3c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py3dinterpolations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""quick 3D interpolation with python"""

# Version
__version__ = "0.3.0"
__version__ = "0.3.1"

# Credits
__author__ = "Giorgio Caizzi"
Expand Down
4 changes: 2 additions & 2 deletions py3dinterpolations/modelling/modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def predict(self, **kwargs) -> np.ndarray:
"""
# make predictions on normalized grid if normalization was applied
if "normalization" in self.griddata.preprocessor_params.keys():
grids_arrays = self.grid3d.grid
else:
grids_arrays = self.grid3d.normalized_grid
else:
grids_arrays = self.grid3d.grid

# predict
interpolated, variance = self.model.predict(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="py3dinterpolations",
version="0.3.0",
version="0.3.1",
description="quick 3D interpolation with python",
long_description_content_type="text/markdown",
long_description=long_description,
Expand Down

0 comments on commit cb4f3c2

Please sign in to comment.