Skip to content

Commit

Permalink
rename cloud_type to flag in decode_sky_type
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Oct 17, 2024
1 parent 58dacb1 commit 4199910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlclouds/p_fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def decode_sky_type(cloud_type):
"""Decode integer cloud types as strings."""
if 'cloud_type' in cloud_type:
df = cloud_type.copy()
df = df.rename({'cloud_type': 'flag'}, axis=1)
else:
df = pd.DataFrame(columns=['flag'], data=cloud_type)
df.loc[df['flag'] == 0, 'flag'] = 'clear'
Expand Down

0 comments on commit 4199910

Please sign in to comment.