fmt: fixes some linting issues
All checks were successful
gitea-physics/deepdog/pipeline/pr-master This commit looks good

This commit is contained in:
Deepak Mallubhotla 2023-07-24 01:59:07 -05:00
parent fccf50eb27
commit d6e6876a79
Signed by: deepak
GPG Key ID: BEBAEBF28083E022
2 changed files with 4 additions and 1 deletions

View File

@ -192,6 +192,9 @@ class BayesRunWithSubspaceSimulation:
likelihoods: List[float] = []
for (name, result) in zip(self.model_names, results):
if result.over_target_likelihood is None:
_logger.error("got a none result, bye")
return
likelihoods.append(result.over_target_likelihood)
row[f"{name}_likelihood"] = result.over_target_likelihood

View File

@ -114,7 +114,7 @@ class SubsetSimulation:
mcmc_rng = numpy.random.default_rng(self.mcmc_seed)
for i in range(self.m_max):
next_seeds = all_chains[-self.n_c :]
next_seeds = all_chains[-self.n_c:]
for cost_index, cost_chain in enumerate(all_chains[: -self.n_c]):
probs_list.append(