From cef850081b3dda789ffc339c62baab4403007f93 Mon Sep 17 00:00:00 2001 From: Sandor Kertesz Date: Fri, 11 Aug 2023 16:13:09 +0100 Subject: [PATCH] Reimplement metadata, field and fieldlist for netcdf and update numpy fieldlist notebook --- earthkit/data/core/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/earthkit/data/core/index.py b/earthkit/data/core/index.py index 500417d4..d730707f 100644 --- a/earthkit/data/core/index.py +++ b/earthkit/data/core/index.py @@ -46,8 +46,7 @@ def __init__(self, lst): def __call__(self, x): if self.first and x is not None: self.lst = [ - lambda y: type(x) if not type(x) == type(y) else y - for y in self.lst + type(x) if not type(x) == type(y) else y for y in self.lst ] self.first = False return x in self.lst