From 1ea26113b82a9481a4a51ff90cc5a0365525bcca Mon Sep 17 00:00:00 2001 From: Tucker Date: Mon, 13 Mar 2023 16:11:15 -0400 Subject: [PATCH] Let unpack be used for comparison. --- smarts/core/utils/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smarts/core/utils/file.py b/smarts/core/utils/file.py index 67cd03af5e..3c002d77d1 100644 --- a/smarts/core/utils/file.py +++ b/smarts/core/utils/file.py @@ -82,7 +82,7 @@ def unpack(obj): if isinstance(obj, dict): return {key: unpack(value) for key, value in obj.items()} elif isinstance(obj, (list, np.ndarray)): - return [unpack(value) for value in obj] + return tuple(unpack(value) for value in obj) elif isnamedtupleinstance(obj): return {key: unpack(value) for key, value in obj._asdict().items()} elif isdataclass(obj):