Skip to content

Commit

Permalink
re-blacken.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Jul 10, 2020
1 parent 264d6dd commit 60a029c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pymc3/distributions/posterior_predictive.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def fast_sample_posterior_predictive(
_ETPParent = UserDict[str, np.ndarray] # this is only processed by mypy
else:
# this is not seen by mypy but will be executed at runtime.
_ETPParent = UserDict
_ETPParent = UserDict

class _ExtendableTrace(_ETPParent):
def extend_trace(self, trace: Dict[str, np.ndarray]) -> None:
Expand Down
17 changes: 10 additions & 7 deletions pymc3/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,9 @@ def _sample_many(


def _sample_population(
draws:int,
chain:int,
chains:int,
draws: int,
chain: int,
chains: int,
start,
random_seed,
step,
Expand Down Expand Up @@ -1714,12 +1714,15 @@ def sample_posterior_predictive(

if var_names is not None:
if vars is not None:
raise IncorrectArgumentsError("Should not specify both vars and var_names arguments.")
raise IncorrectArgumentsError(
"Should not specify both vars and var_names arguments."
)
else:
vars = [model[x] for x in var_names]
elif vars is not None: # var_names is None, and vars is not.
warnings.warn("vars argument is deprecated in favor of var_names.",
DeprecationWarning)
elif vars is not None: # var_names is None, and vars is not.
warnings.warn(
"vars argument is deprecated in favor of var_names.", DeprecationWarning
)
if vars is None:
vars = model.observed_RVs

Expand Down

0 comments on commit 60a029c

Please sign in to comment.