Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed May 4, 2024
1 parent 02e444d commit 12f0730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hyp3_autorift/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@ def _apply_filter_function(image_path: str, filter_function: Callable) -> Tuple[

image_new_path = create_filtered_filepath(image_path)
_ = utils.write_geospatial(image_new_path, image_filtered, image_transform, image_projection,
nodata=None, dtype=gdal.GDT_Float32)
nodata=None, dtype=gdal.GDT_Float32)

zero_path = None
if zero_mask is not None:
zero_path = create_filtered_filepath(f'{Path(image_new_path).stem}_zeroMask{Path(image_new_path).suffix}')
_ = utils.write_geospatial(zero_path, zero_mask, image_transform, image_projection,
nodata=np.iinfo(np.uint8).max, dtype=gdal.GDT_Byte)
nodata=np.iinfo(np.uint8).max, dtype=gdal.GDT_Byte)

return image_new_path, zero_path

Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from hyp3_autorift.process import DEFAULT_PARAMETER_FILE



def test_get_esa_credentials_env(tmp_path, monkeypatch):
with monkeypatch.context() as m:
m.setenv('ESA_USERNAME', 'foo')
Expand Down

0 comments on commit 12f0730

Please sign in to comment.