mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-06 00:43:11 +01:00
accept tuple for counter list
This commit is contained in:
1 parent
41f0687671
commit
afd56703a2
1 file changed
+1
-1
@@ -41,7 +41,7 @@ def list_to_bitmask(values):
|
||||
return mask
|
||||
|
||||
def make_bitmask(args):
|
||||
if isinstance(args, list):
|
||||
if isinstance(args, (list,tuple)):
|
||||
return list_to_bitmask(args)
|
||||
elif isinstance(args, dict):
|
||||
return {key: list_to_bitmask(value) for key, value in args.items()}
|
||||
|
||||
Reference in new issue
Block a user