Skip to content

Commit

Permalink
Fix GEFS member check
Browse files Browse the repository at this point in the history
  • Loading branch information
David Landry committed Jul 31, 2023
1 parent f48ba8c commit d5fb595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion herbie/models/gefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def template(self):
# - Members 1-4 are the perturbation members
if self.member == 0:
member = f"c{self.member:02d}"
elif self.member > 5:
elif self.member > 0 and self.member < 5:
member = f"p{self.member:02d}"
else:
raise ValueError("GEFS 'member' must be one of {0,1,2,3,4}.")
Expand Down

0 comments on commit d5fb595

Please sign in to comment.