From 81766cf344a94a2f85df328adc728d5487c5532e Mon Sep 17 00:00:00 2001 From: Rahul Mahrsee Date: Wed, 20 Dec 2023 10:43:31 +0000 Subject: [PATCH] lint fixes. --- xee/ext.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xee/ext.py b/xee/ext.py index 32c13a2..1618191 100644 --- a/xee/ext.py +++ b/xee/ext.py @@ -573,9 +573,7 @@ def _process_coordinate_data( self._get_tile_from_ee, list(zip(data, itertools.cycle([coordinate_type]))), ): - tiles[i] = ( - arr.tolist() if coordinate_type == 'x' else arr.tolist()[0] - ) + tiles[i] = arr.tolist() if coordinate_type == 'x' else arr.tolist()[0] return np.concatenate(tiles) def get_variables(self) -> utils.Frozen[str, xarray.Variable]: @@ -609,7 +607,6 @@ def get_variables(self) -> utils.Frozen[str, xarray.Variable]: lat_total_tile = math.ceil(v0.shape[2] / height_chunk) lat = self._process_coordinate_data( lat_total_tile, height_chunk, v0.shape[2], 'y' - ) width_coord = np.squeeze(lon)