From 104c31306ecdb78f2f28494c207a2241b7ff2e54 Mon Sep 17 00:00:00 2001 From: FNTwin Date: Fri, 21 Jun 2024 14:54:01 +0000 Subject: [PATCH] <3.12 enum compatibility --- openqdc/datasets/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openqdc/datasets/base.py b/openqdc/datasets/base.py index fcf9d95..026bfd7 100644 --- a/openqdc/datasets/base.py +++ b/openqdc/datasets/base.py @@ -250,7 +250,7 @@ def force_unit(self): units = self.__forces_unit__.split("/") if len(units) > 2: units = ["/".join(units[:2]), units[-1]] - return ForceTypeConversion(*units) + return ForceTypeConversion(tuple(units)) # < 3.12 compatibility @property def root(self):