From 65e19488359d7f5656660da7da8f32ed474989c3 Mon Sep 17 00:00:00 2001 From: Deepak Mallubhotla Date: Wed, 28 Feb 2024 16:47:03 -0600 Subject: [PATCH] fix: fixes typeerror vs indexerror on bare float as cost in subset simulation --- deepdog/subset_simulation/subset_simulation_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdog/subset_simulation/subset_simulation_impl.py b/deepdog/subset_simulation/subset_simulation_impl.py index d0515da..c630fbf 100644 --- a/deepdog/subset_simulation/subset_simulation_impl.py +++ b/deepdog/subset_simulation/subset_simulation_impl.py @@ -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")