Skip to content

Commit

Permalink
Per #1319, small updated to write_tmp_dataplane.py script. Had a coup…
Browse files Browse the repository at this point in the history
…le of if statements that should really be elif.
  • Loading branch information
John Halley Gotway committed Apr 2, 2021
1 parent a79cc78 commit e91a453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions met/data/wrappers/write_tmp_dataplane.py
Expand Up @@ -60,9 +60,9 @@
print(attr, attr_val, type(attr_val))
if attr == 'name':
setattr(ds, 'name_str', attr_val)
if type(attr_val) == str:
elif type(attr_val) == str:
setattr(ds, attr, attr_val)
if type(attr_val) == dict:
elif type(attr_val) == dict:
for key in attr_val:
setattr(ds, attr + '.' + key, attr_val[key])
ds.close()

0 comments on commit e91a453

Please sign in to comment.