Skip to content

Commit

Permalink
Convert to an integer before comparing it (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
uramirez8707 authored Mar 18, 2024
1 parent e653d49 commit 0860279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fms_yaml_tools/diag_table/diag_table_to_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def parse_diag_table(self):
if len(iline_list) != 6:
raise Exception()
for member in iline_list:
if member < 0:
if int(member) < 0:
raise Exception()
self.global_section[mykey] = iline.split('#')[0].strip()
global_count += 1
Expand Down

0 comments on commit 0860279

Please sign in to comment.