Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Nov 12, 2019
1 parent 3a9da18 commit 7f00f10
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arviz/stats/stats.py
Expand Up @@ -485,9 +485,7 @@ def loo(data, pointwise=False, reff=None, scale="deviance"):
"""
inference_data = convert_to_inference_data(data)
if not hasattr(inference_data, "sample_stats"):
raise TypeError(
"Must be able to extract a sample_stats group from data!"
)
raise TypeError("Must be able to extract a sample_stats group from data!")
if "log_likelihood" not in inference_data.sample_stats:
raise TypeError("Data must include log_likelihood in sample_stats")
log_likelihood = inference_data.sample_stats.log_likelihood
Expand All @@ -507,9 +505,7 @@ def loo(data, pointwise=False, reff=None, scale="deviance"):

if reff is None:
if not hasattr(inference_data, "posterior"):
raise TypeError(
"Must be able to extract a posterior group from data!"
)
raise TypeError("Must be able to extract a posterior group from data!")
posterior = inference_data.posterior
n_chains = len(posterior.chain)
if n_chains == 1:
Expand Down

0 comments on commit 7f00f10

Please sign in to comment.