From bac008220b34a680d699349c1bc6cd591019e9ab Mon Sep 17 00:00:00 2001 From: Brendan Collins Date: Thu, 25 Jun 2026 11:31:22 -0700 Subject: [PATCH] Style: fix E305 and collapse utils import in flood.py Cat 1 (flake8 E305): add the missing second blank line between _validate_mannings_n_dataarray and the NLCD_MANNINGS_N module-level assignment. Cat 4 (isort): collapse the from xrspatial.utils import block to the configured line_length=100 form, matching the style other modules were brought to in earlier style sweeps. No behavioural change. flake8 + isort clean; 88 flood tests pass. --- xrspatial/flood.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/xrspatial/flood.py b/xrspatial/flood.py index 27e6f6f3a..b8a81f9fa 100644 --- a/xrspatial/flood.py +++ b/xrspatial/flood.py @@ -28,13 +28,8 @@ except ImportError: da = None -from xrspatial.utils import ( - _dask_task_name_kwargs, - _validate_raster, - has_cuda_and_cupy, - is_cupy_array, - is_dask_cupy, -) +from xrspatial.utils import (_dask_task_name_kwargs, _validate_raster, has_cuda_and_cupy, + is_cupy_array, is_dask_cupy) # Minimum tan(slope) clamp: tan(0.001 deg), same as TWI _TAN_MIN = np.tan(np.radians(0.001)) @@ -58,6 +53,7 @@ def _validate_mannings_n_dataarray(mannings_n): "values (no zeros, negatives, NaN, or Inf)." ) + # --------------------------------------------------------------------------- # NLCD-to-Manning's n lookup (Chow 1959; Arcement & Schneider 1989) # ---------------------------------------------------------------------------