Skip to content

Commit

Permalink
Merge pull request #15 from jllovell/Bugfix-nodata_values_sfm
Browse files Browse the repository at this point in the history
Bugfix in common.py: replacing hardcoded nan value with nan_values variable
  • Loading branch information
npucino authored Dec 12, 2024
2 parents 6289af9 + 5cc1286 commit 8f51ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandpyper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ def extract_from_folder(
if mode == "dsm":
nan_out = np.count_nonzero(np.isnan(np.array(gdf.z).astype("f")))
nan_raster = np.count_nonzero(gdf.z == nan_values)
gdf.z.replace(-10000, np.nan, inplace=True)
gdf.z.replace(nan_values, np.nan, inplace=True)

elif mode == "ortho":
nan_out = np.count_nonzero(
Expand Down

0 comments on commit 8f51ddb

Please sign in to comment.