Skip to content

Commit

Permalink
deleted if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
markvrma committed Jan 13, 2022
1 parent 6570e95 commit a823043
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pymc/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2062,12 +2062,6 @@ def sample_prior_predictive(
names.append(name)
vars_to_sample.append(transformed_rv_var)

# If the user asked for the transformed variable in var_names, but not the
# original RV, we add it manually here
if rv_var.name not in names:
names.append(rv_var.name)
vars_to_sample.append(rv_var)

inputs = [i for i in inputvars(vars_to_sample) if not isinstance(i, (Constant, SharedVariable))]

sampler_fn = compile_pymc(
Expand Down

0 comments on commit a823043

Please sign in to comment.