Skip to content

Commit

Permalink
Merge pull request PSLmodels#237 from PSLmodels/simplify-code
Browse files Browse the repository at this point in the history
Minor code simplification in create_area_weights.py script
  • Loading branch information
martinholmer authored Oct 14, 2024
2 parents 9f6b776 + bc3443c commit 5670848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmd/areas/create_area_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def prepared_data(area: str, vardf: pd.DataFrame):
if row.count == 0:
unmasked_varray = vardf[row.varname].astype(float)
else:
unmasked_varray = (vardf[row.varname] > -np.inf).astype(float)
unmasked_varray = np.ones(numobs, dtype=float)
mask = np.ones(numobs, dtype=int)
assert (
row.scope >= 0 and row.scope <= 2
Expand Down

0 comments on commit 5670848

Please sign in to comment.