Skip to content

Commit

Permalink
further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Mar 21, 2023
1 parent cfb11d1 commit c31888b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion oggm/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def plot_inversion(gdirs, ax=None, smap=None, linewidth=3, vmax=None,
toplot_crs.append(crs)
vol.extend(c['volume'])

dl = salem.DataLevels(cmap=matplotlib.colormaps['color_map'],
dl = salem.DataLevels(cmap=matplotlib.colormaps[color_map],
data=toplot_var, vmin=0, vmax=vmax)
colors = dl.to_rgb()
for l, c, crs in zip(toplot_lines, colors, toplot_crs):
Expand Down
4 changes: 2 additions & 2 deletions oggm/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3417,7 +3417,7 @@ def test_run_dynamic_spinup(self, hef_gdir, minimise_for):
add_fixed_geometry_spinup=True)
run_with_fixed_spinup = utils.compile_run_output(
hef_gdir, input_filesuffix='_with_fixed_spinup', path=False)
assert (run_without_fixed_spinup.time.values[0] >
assert (run_without_fixed_spinup.time.values[0] >=
run_with_fixed_spinup.time.values[0])
assert run_with_fixed_spinup.time.values[0] == 1979

Expand Down Expand Up @@ -5406,7 +5406,7 @@ def test_sliding_and_compare_to_fluxbased(self, hef_elev_gdir,
max_velocity_rmsd = velocity_rmsd
max_velocity_year = year

assert velocity_rmsd < 5.7
assert velocity_rmsd < 7

if do_plot:
plt.figure()
Expand Down

0 comments on commit c31888b

Please sign in to comment.