Skip to content

Commit

Permalink
Update for 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Feb 7, 2021
1 parent 644d723 commit 81e909f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/_code/prepro_invert_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# Use multiprocessing to apply the OGGM tasks and the new task to all glaciers
from oggm import workflow
cfg.PARAMS['use_multiprocessing'] = True
gdirs = workflow.init_glacier_regions(rgidf)
workflow.execute_entity_task(tasks.glacier_masks, gdirs)
# Yes, also your new task!
Expand Down
1 change: 1 addition & 0 deletions docs/_code/prepro_mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
cfg.PARAMS['baseline_climate'] = 'CUSTOM'
cfg.PARAMS['run_mb_calibration'] = True
cfg.PARAMS['border'] = 80
cfg.PARAMS['use_multiprocessing'] = True

# Glacier directory for Hintereisferner in Austria
entity = gpd.read_file(get_demo_file('Hintereisferner_RGI5.shp')).iloc[0]
Expand Down
4 changes: 3 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ scipy
pandas
shapely
matplotlib
pyproj
pyproj==2.5.0
rasterio
Pillow
geopandas
netcdf4==1.3.1
cftime
scikit-image
configobj
joblib
xarray
progressbar2
pytest
tables
motionless
dask
bottleneck
Expand Down
2 changes: 1 addition & 1 deletion oggmcontrib/mbmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_random_ela_h(self, year):
self.ela_h_per_year[year] = ela_h
return ela_h

def get_annual_mb(self, heights, year=None, fl_id=None):
def get_annual_mb(self, heights, year=None, fl_id=None, fls=None):

# Compute the mass-balance gradient
ela_h = self.get_random_ela_h(year)
Expand Down

0 comments on commit 81e909f

Please sign in to comment.