Skip to content

Commit

Permalink
coerce bool to int in cfradial writer
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Feb 29, 2024
1 parent 9d38c26 commit bb196e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyart/io/cfradial.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,8 @@ def _create_ncvar(dic, dataset, name, dimensions):

# set all attributes
for key, value in dic.items():
if type(value) == bool: # convert bool to int
value = int(value)
if key in special_keys.keys():
continue
if key in ["data", "long_name", "units"]:
Expand Down

0 comments on commit bb196e7

Please sign in to comment.