diff --git a/src/icartt/dataset.py b/src/icartt/dataset.py index df697872d5b5c2437eca8da2877dfcbfecdf9cec..4d50636e15f9087be9c10a45eb03728acd2cd3c4 100644 --- a/src/icartt/dataset.py +++ b/src/icartt/dataset.py @@ -163,7 +163,7 @@ class DataStore2110(collections.UserDict): ivarvalue = vmiss_to_npnan(kwargs[self.ivarname], self.missvals[self.ivarname]) # this is an AUX line - if any([x in self.auxvarnames for x in kwargs.keys()]): # TODO: any (all as well) do not require a comprehension; pure generator expression works fine + if any(x in self.auxvarnames for x in kwargs.keys()): # and we create the whole dataset if needed if not ivarvalue in self.data.keys(): self.data[ivarvalue] = { @@ -173,7 +173,7 @@ class DataStore2110(collections.UserDict): self.data[ivarvalue]["AUX"].add(**kwargs) # this is a DEP line - if any([x in self.dvarnames for x in kwargs.keys()]): # TODO: see above: remove [ ] + if any(x in self.dvarnames for x in kwargs.keys()): if not self.ibvarname in kwargs.keys(): raise Exception("Need independent (bounded) variable data.")