Skip to content

Commit

Permalink
Fix bug in GempakGrid
Browse files Browse the repository at this point in the history
GDTM2 was being referenced in the ColumnHeaders struct. This attribute
does not exist. Bug went undetected because GDT2 is rarely defined and
the logic statement gets terminated before checking for the missing
GDTM2 attribute. The parameter name should be GTM2 instead.
  • Loading branch information
nawendt committed Jan 27, 2023
1 parent c3de4a7 commit 6f62440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gempakio/decode/gempak.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def __init__(self, file, *args, **kwargs):
n,
head.GTM1[0],
head.GDT1 + head.GTM1[1],
head.GDT2 + head.GTM2[1] if head.GDT2 and head.GDTM2 else None,
head.GDT2 + head.GTM2[1] if head.GDT2 and head.GTM2 else None,
head.GPM1 + head.GPM2 + head.GPM3,
head.GLV1,
head.GLV2,
Expand Down

0 comments on commit 6f62440

Please sign in to comment.