Skip to content

Commit

Permalink
Define vector of unfixed params.
Browse files Browse the repository at this point in the history
  • Loading branch information
alissarjohnson committed Jul 7, 2021
1 parent 9ba0169 commit 02adea9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function prior(parameters::ParameterVector, x::AbstractVector{T};
free_params = parameters
free_x = x
else
unfixed = map-> !θ.fixed, parameters)
free_params = Base.filter(x -> !_filter_all_fixed_para(x), parameters)
free_x = x[unfixed]
end
Expand Down

0 comments on commit 02adea9

Please sign in to comment.