AMA-Labs / cal-notebooks

CEOS Analytics Laboratory notebooks and tools
0 stars 1 forks source link

EASI Tools setup is incorrect #7

Closed jdh-ama closed 9 months ago

jdh-ama commented 11 months ago

Impacts EAIL_S1_Land_Change

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 21
     19 sys.path.append(os.path.expanduser('/home/jovyan/hub-notebooks/scripts'))
     20 os.environ['USE_PYGEOS'] = '0'
---> 21 from easi_tools import EasiNotebooks
     22 import notebook_utils
     23 easi = EasiNotebooks()

ModuleNotFoundError: No module named 'easi_tools'

The following is the working setup:

sys.path.append(os.path.expanduser('../scripts'))
os.environ['USE_PYGEOS'] = '0'
from easi_tools import EasiDefaults
from easi_tools import notebook_utils
easi = EasiDefaults() # Get the default parameters for this system

Assumes that sys and os have been imported.

jdh-ama commented 11 months ago

All of the notebooks do it slightly differently, but the "working setup" is what is common between them. The EASI setup boilerplate should at a minimum be isolated in its own notebook cell.

Questions