Skip to content

Commit 1322565

Browse files
committed
another fix
1 parent 920988d commit 1322565

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

autofit/mapper/prior/tuple_prior.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,17 @@ def instance_tuples(self):
5151
instances: [(String, instance)]
5252
A list of instances
5353
"""
54-
return list(
55-
sorted(
54+
return [
55+
(key, value.value if isinstance(value, Constant) else value)
56+
for key, value in sorted(
5657
[
5758
(key, value)
5859
for key, value in self.__dict__.items()
5960
if key != "id" and isinstance(value, (int, float))
6061
],
6162
key=lambda tup: tup[0],
6263
)
63-
)
64+
]
6465

6566
def value_for_arguments(self, arguments):
6667
"""

0 commit comments

Comments
 (0)