Skip to content

Commit

Permalink
FORMAT: Black
Browse files Browse the repository at this point in the history
  • Loading branch information
davemlz committed Aug 24, 2023
1 parent 06c9b68 commit 160355d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sen2nbar/nbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def nbar_stac(

# Delete infinite values
da = da.astype("float32")
da = da.where(lambda x: np.isfinite(x),other=np.nan)
da = da.where(lambda x: np.isfinite(x), other=np.nan)

return da

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sen2nbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_stac_c_factor_reprojection(self):
lat=60.64183,
lon=23.95952,
collection="sentinel-2-l2a",
bands=["B04","B03","B02"],
bands=["B04", "B03", "B02"],
start_date=f"2016-01-01",
end_date=f"2016-03-31",
edge_size=512,
Expand Down

0 comments on commit 160355d

Please sign in to comment.