From 48ded485f80f8ce5ddd7c38ee1ab8d4e166ecf10 Mon Sep 17 00:00:00 2001 From: zineb aly <aly.zineb.az@gmail.com> Date: Wed, 19 Feb 2020 22:03:26 +0100 Subject: [PATCH] remove sets --- km3io/offline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/km3io/offline.py b/km3io/offline.py index ba4d0e5..4677316 100644 --- a/km3io/offline.py +++ b/km3io/offline.py @@ -313,7 +313,7 @@ class Reader: do not contain data. Therefore, the keys corresponding to these fake branches are not read. """ - keys = set(self.keys.valid_keys) + keys = self.keys.valid_keys if key not in keys and not isinstance(key, int): raise KeyError( "'{}' is not a valid key or is a fake branch.".format(key)) -- GitLab