diff --git a/src/dolphin/unwrap/_tophu.py b/src/dolphin/unwrap/_tophu.py index 60255aba..d0757917 100644 --- a/src/dolphin/unwrap/_tophu.py +++ b/src/dolphin/unwrap/_tophu.py @@ -189,9 +189,10 @@ def _get_cb_and_nodata(unwrap_method, unwrap_callback, nodata): # Fill in the nan pixels with the nearest ambiguities from ._post_process import interpolate_masked_gaps - with rio.open(unw_filename, mode="r+") as u_src, rio.open( - igram_rb.filepath - ) as i_src: + with ( + rio.open(unw_filename, mode="r+") as u_src, + rio.open(igram_rb.filepath) as i_src, + ): unw = u_src.read(1) ifg = i_src.read(1) # nodata_mask = i_src.read_masks(1) != 0 diff --git a/tests/test_io_readers.py b/tests/test_io_readers.py index 5ddc990a..a6de296e 100644 --- a/tests/test_io_readers.py +++ b/tests/test_io_readers.py @@ -40,15 +40,18 @@ def binary_file_list(tmp_path_factory, slc_stack): for i, slc in enumerate(slc_stack): f = tmp_path / f"test_{i}.bin" # Ignore warning - with pytest.warns(NotGeoreferencedWarning), rio.open( - f, - "w", - driver="ENVI", - width=shape[1], - height=shape[0], - count=1, - dtype=dtype, - ) as dst: + with ( + pytest.warns(NotGeoreferencedWarning), + rio.open( + f, + "w", + driver="ENVI", + width=shape[1], + height=shape[0], + count=1, + dtype=dtype, + ) as dst, + ): dst.write(slc, 1) files.append(f)