Skip to content

Commit

Permalink
add valueerror
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Oct 25, 2024
1 parent 8d6401a commit f6fa1de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spei/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def _get_cmap(self) -> mpl.colors.Colormap:
return self.vik()
elif "lajolla" in self.name:
return self.lajolla()
else:
raise ValueError(f"Invalid colormap name: {self.name}")

@staticmethod
def cmap_from_list(
Expand Down

0 comments on commit f6fa1de

Please sign in to comment.