SpatioTemporal / pystare

The Python interface for the SpatioTemporal Adaptive Resolution Encoding (STARE), a unified indexing for geolocated data.
https://pystare.readthedocs.io/en/latest/
12 stars 2 forks source link

from_latlon_2d: 'pystare' has no attribute 'exception'. Did you mean: 'exceptions'? #107

Closed michaelleerilee closed 2 years ago

michaelleerilee commented 2 years ago

Traceback (most recent call last): File "/nethome/mrilee/opt/anaconda3/envs/test-work/bin/create_sidecar_files.py", line 8, in sys.exit(main()) File "/nethome/mrilee/git/STAREMaster_py/staremaster/create_sidecar_files.py", line 178, in main create_sidecar(file_path=file_path, File "/nethome/mrilee/git/STAREMaster_py/staremaster/create_sidecar_files.py", line 58, in create_sidecar sidecar = granule.create_sidecar(n_workers=n_workers, cover_res=cover_res, out_path=out_path) File "/nethome/mrilee/git/STAREMaster_py/staremaster/products/goes.py", line 81, in create_sidecar sids = staremaster.conversions.latlon2stare(lats, lons, n_workers) File "/nethome/mrilee/git/STAREMaster_py/staremaster/conversions.py", line 34, in latlon2stare sids = pystare.from_latlon_2d(lats, lons, resolution, adapt_resolution) File "/nethome/mrilee/opt/anaconda3/envs/test-work/lib/python3.10/site-packages/pystare/spatial.py", line 101, in from_latlon_2d raise pystare.exception.PyStareError('Cannot set level AND adapt level') AttributeError: module 'pystare' has no attribute 'exception'. Did you mean: 'exceptions'?