Skip to content

Commit

Permalink
<3.12 enum compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
FNTwin committed Jun 21, 2024
1 parent 540b35f commit 104c313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openqdc/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 104c313

Please sign in to comment.