Skip to content

Commit

Permalink
Change to match shapes for setting leadTime attrs. (#147)
Browse files Browse the repository at this point in the history
For product template numbers 8 through 12, the setting of leadTime
was failing because of different shapes.
  • Loading branch information
TimothyCera-NOAA authored Jun 3, 2024
1 parent 95e397d commit ba8de9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grib2io/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def __set__(self, obj, value):
try:
pdt[_key[obj.pdtn]] = (
datetime.timedelta(hours=ivalue) + refdate
).timetuple()[:5]
).timetuple()[:6]
except KeyError:
if obj.pdtn == 48:
pdt[19] = ivalue / (
Expand Down

0 comments on commit ba8de9f

Please sign in to comment.