From f5f4e1068ba31fde54e1c02131d67d0a16437af9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 02:08:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- recipes/mursst/recipe.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes/mursst/recipe.py b/recipes/mursst/recipe.py index 5b3f17cb32..41c9872aba 100644 --- a/recipes/mursst/recipe.py +++ b/recipes/mursst/recipe.py @@ -67,18 +67,14 @@ class Preprocess(beam.PTransform): @staticmethod def _preproc(item: Indexed[T]) -> Indexed[T]: - SELECTED_VARS = { - 'analysed_sst', - 'analysis_error', - 'mask', - 'sea_ice_fraction' - } + SELECTED_VARS = {'analysed_sst', 'analysis_error', 'mask', 'sea_ice_fraction'} index, ds = item return index, ds.drop([k for k in ds.data_vars.keys() if k not in SELECTED_VARS]) def expand(self, pcoll: beam.PCollection) -> beam.PCollection: return pcoll | beam.Map(self._preproc) + # use HTTP_REL if S3 access is not possible. S3_REL is faster. selected_rel = S3_REL pattern = pattern_from_file_sequence(