sustainability-lab / polire

Spatial Interpolation in Python
https://sustainability-lab.github.io/polire/
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

Pykrige needs to be installed while installing Polire #33

Closed nipunbatra closed 4 years ago

nipunbatra commented 4 years ago

I currently installed polire and tried importing it


ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-23-1294988773fa> in <module>
----> 1 from polire import interpolate

~/anaconda3/lib/python3.7/site-packages/polire/interpolate/__init__.py in <module>
      5 from .spatial.spatial import SpatialAverage
      6 from .natural_neighbors.natural_neighbors import Natural_neighbor
----> 7 from .kriging.kriging import Kriging

~/anaconda3/lib/python3.7/site-packages/polire/interpolate/kriging/kriging.py in <module>
      4 import numpy as np
      5 from ..base import Base
----> 6 from pykrige.ok import OrdinaryKriging
      7 from pykrige.uk import UniversalKriging
      8 

ModuleNotFoundError: No module named 'pykrige'
sdeepaknarayanan commented 4 years ago

@nipunbatra, currently we are using PyKrige in the background for Kriging. Our implementation is just a wrapper around PyKrige as of now to implement scikit-learn type functions.

You can view PyKrige here.

I will update with a fix by generating a requirements.txt.

nipunbatra commented 4 years ago

Sounds good. I have installed pykrige locally.

sdeepaknarayanan commented 4 years ago

Commits f1b788aec2ea984fcd652d1463858efb251e0e94 and 7b4ee817d439fe4308f103efb84ca8582f0b5858 fixes this.