fix: fixes typeerror vs indexerror on bare float as cost in subset simulation

This commit is contained in:
2024-02-28 16:47:03 -06:00
parent 310977e9b8
commit 65e1948835

View File

@@ -215,7 +215,7 @@ class SubsetSimulation:
for cost, chained in chain:
try:
filtered_cost = cost[0]
except IndexError:
except (IndexError, TypeError):
filtered_cost = cost
all_chains.append((filtered_cost, chained))
_logger.debug("finished mcmc")