Skip to content

Commit

Permalink
specify default compartment height to avoid numpy error
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Dec 2, 2024
1 parent 43be02a commit b8617ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esupy/context_secondary.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def classify_height(df):
(df['StackHeight'] < 150*m_to_ft), # ~492 ft
(df['StackHeight'] >= 150*m_to_ft)]
cmpt = ['unspecified', 'ground', 'low', 'high', 'very high']
df['cmpt_rh'] = np.select(cond, cmpt)
df['cmpt_rh'] = np.select(cond, cmpt, default='unspecified')
return df

def urb_intersect(df_pt, year):
Expand Down

0 comments on commit b8617ff

Please sign in to comment.