Skip to content

Commit

Permalink
Replaced assert for nan_percentage by just print the info in step4
Browse files Browse the repository at this point in the history
  • Loading branch information
doc78 committed Nov 20, 2024
1 parent 26cdc24 commit 1951052
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ def main():

# Check if there are too many missing values
nan_percentage = 100*np.sum(np.isnan(data_annual_map))/(data_annual_map.shape[0]*data_annual_map.shape[1])
assert nan_percentage<37
print(f"nan_percentage is {nan_percentage}")
#assert nan_percentage<37

# Replace NaNs with zeros
data_annual_map[np.isnan(data_annual_map)] = 0
Expand Down

0 comments on commit 1951052

Please sign in to comment.