diff --git a/docs/install_pygem.md b/docs/install_pygem.md index 531a5b9a..6517b343 100644 --- a/docs/install_pygem.md +++ b/docs/install_pygem.md @@ -12,7 +12,7 @@ Next, choose your preferred PyGEM installation option:
(stable_install_target)= ## Stable install -The simplest **stable** installation method is to use an environment file. Right-click and save PyGEM's recommended environment file from [this link](https://raw.githubusercontent.com/PyGEM-Community/PyGEM/refs/heads/master/docs/pygem_environment.yml). +The simplest **stable** installation method is to use an environment file. Right-click and save PyGEM's recommended environment file from [this link](https://raw.githubusercontent.com/PyGEM-Community/PyGEM/refs/heads/main/docs/pygem_environment.yml). From the folder where you saved the file, run `conda env create -f pygem_environment.yml`. ```{note} diff --git a/pygem/bin/run/run_calibration.py b/pygem/bin/run/run_calibration.py index 9c25a7f3..69bd053a 100755 --- a/pygem/bin/run/run_calibration.py +++ b/pygem/bin/run/run_calibration.py @@ -834,15 +834,12 @@ def run(list_packed_vars): t1_month = gdir.mbdata['t1_datetime'].month t2_year = gdir.mbdata['t2_datetime'].year t2_month = gdir.mbdata['t2_datetime'].month - t1_idx = dates_table[ + gdir.mbdata['t1_idx'] = dates_table[ (t1_year == dates_table['year']) & (t1_month == dates_table['month']) ].index.values[0] - t2_idx = dates_table[ + gdir.mbdata['t2_idx'] = dates_table[ (t2_year == dates_table['year']) & (t2_month == dates_table['month']) ].index.values[-1] - # Record indices - gdir.mbdata['t1_idx'] = t1_idx - gdir.mbdata['t2_idx'] = t2_idx if debug: print( diff --git a/pygem/tests/test_03_notebooks.py b/pygem/tests/test_03_notebooks.py index 6af257ba..0c372605 100644 --- a/pygem/tests/test_03_notebooks.py +++ b/pygem/tests/test_03_notebooks.py @@ -19,6 +19,7 @@ # list of notebooks to test, in the desired order (failures may occur if order is changed) notebooks = [ 'simple_test.ipynb', # runs with sample_data + 'simple_test_daily.ipynb', # runs with sample_data 'advanced_test.ipynb', # runs with sample_data 'dhdt_processing.ipynb', # runs with sample_data 'advanced_test_spinup_elev_change_calib.ipynb', # runs with sample_data, depends on dhdt_processing.ipynb results