fix: fixes typeerror vs indexerror on bare float as cost in subset simulation
This commit is contained in:
@@ -215,7 +215,7 @@ class SubsetSimulation:
|
|||||||
for cost, chained in chain:
|
for cost, chained in chain:
|
||||||
try:
|
try:
|
||||||
filtered_cost = cost[0]
|
filtered_cost = cost[0]
|
||||||
except IndexError:
|
except (IndexError, TypeError):
|
||||||
filtered_cost = cost
|
filtered_cost = cost
|
||||||
all_chains.append((filtered_cost, chained))
|
all_chains.append((filtered_cost, chained))
|
||||||
_logger.debug("finished mcmc")
|
_logger.debug("finished mcmc")
|
||||||
|
Reference in New Issue
Block a user