From a794de72c6db3327e6931a148616a8e73e4940e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 04:03:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- intake_esm/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intake_esm/core.py b/intake_esm/core.py index 94e879e3..0c9c8c16 100644 --- a/intake_esm/core.py +++ b/intake_esm/core.py @@ -421,7 +421,7 @@ def search( if derivedcat_results: # Merge results from the main and the derived catalogs esmcat_results = pd.concat([esmcat_results, *derivedcat_results]) - esmcat_results = (esmcat_results[~esmcat_results.astype(str).duplicated()]) + esmcat_results = esmcat_results[~esmcat_results.astype(str).duplicated()] cat = self.__class__({'esmcat': self.esmcat.dict(), 'df': esmcat_results}) cat.esmcat.catalog_file = None # Don't save the catalog file