Skip to content

Commit

Permalink
Further fix - add OGGM_RGI_DIR env
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Mar 23, 2023
1 parent 72d914c commit e10f7a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions oggm/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ def oggm_static_paths():
edir = os.path.abspath(os.environ.get('OGGM_EXTRACT_DIR'))
config['tmp_dir'] = os.path.join(edir, 'tmp')
config['rgi_dir'] = os.path.join(edir, 'rgi')
if os.environ.get('OGGM_RGI_DIR') is not None:
config['rgi_dir'] = os.path.abspath(os.environ.get('OGGM_RGI_DIR'))

# Fill the PATH dict
for k, v in config.iteritems():
Expand Down
2 changes: 1 addition & 1 deletion oggm/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5380,7 +5380,7 @@ def test_sliding_and_compare_to_fluxbased(self, hef_elev_gdir,
fmod_impl.fls[-1].length_m,
atol=100.1)
assert utils.rmsd(fmod_impl.fls[-1].thick,
fmod_flux.fls[-1].thick) < 2.1
fmod_flux.fls[-1].thick) < 2.5

# compare velocities
f = hef_elev_gdir.get_filepath('fl_diagnostics',
Expand Down

0 comments on commit e10f7a1

Please sign in to comment.