From 56c7fb8e6509563aa6377cdb0f2dd4e7ad359252 Mon Sep 17 00:00:00 2001 From: Evert de Man Date: Fri, 18 Mar 2022 13:00:19 +0100 Subject: [PATCH] Use correct way of comparing with a literal --- HD_BET/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HD_BET/config.py b/HD_BET/config.py index 1315a7e..870951e 100755 --- a/HD_BET/config.py +++ b/HD_BET/config.py @@ -31,7 +31,7 @@ def preprocess(self, data): def __repr__(self): res = "" for v in vars(self): - if not v.startswith("__") and not v.startswith("_") and v is not 'dataset': + if not v.startswith("__") and not v.startswith("_") and v != 'dataset': res += (v + ": " + str(self.__getattribute__(v)) + "\n") return res