From 41e1c58f7df18d32b940133f5c9aecc8659ecc11 Mon Sep 17 00:00:00 2001 From: Florian Obersteiner Date: Wed, 23 Feb 2022 09:07:12 +0100 Subject: [PATCH] if [attribute] is None --- src/icartt/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icartt/dataset.py b/src/icartt/dataset.py index b00c338..df69787 100644 --- a/src/icartt/dataset.py +++ b/src/icartt/dataset.py @@ -71,7 +71,7 @@ class DataStore1001: if key in self.varnames: newline[key] = vmiss_to_npnan(kwargs[key], self.missvals[key]) - if type(self.data) is type(None): # TODO: None is the sole instance of None ;-) => can use "if self.data is None" + if self.data is None: self.data = newline self.data = self.data.reshape(1) # don't even ask else: -- GitLab