Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/install_pygem.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Next, choose your preferred PyGEM installation option:<br>

(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}
Expand Down
7 changes: 2 additions & 5 deletions pygem/bin/run/run_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions pygem/tests/test_03_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down