Skip to content

Commit

Permalink
fixed typo with likelihood calculation of :\omega (#63)
Browse files Browse the repository at this point in the history
* fixed typo with likelihood calculation of :\omega

* updated version number
  • Loading branch information
reinhold-willcox authored Sep 17, 2024
1 parent 5089c33 commit 7ff025c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SideKicks"
uuid = "ae7baef6-f8d7-4188-9988-8bf5c4952615"
authors = ["Pablo Marchant ", "Reinhold Willcox "]
version = "0.3.2"
version = "0.3.3"

[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
Expand Down
6 changes: 3 additions & 3 deletions src/TuringModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function create_general_mcmc_model(;
elseif obs_symbol == :ω_f
use_cauchy ?
obs_vals[ii] ~ WrappedCauchy(ω_f, obs_errs[ii]) :
obs_vals[ii] ~ ModVonMises(Ω_f, 1/obs_errs[ii]^2)
obs_vals[ii] ~ ModVonMises(ω_f, 1/obs_errs[ii]^2)
elseif obs_symbol == :v_N
use_cauchy ?
obs_vals[ii] ~ Cauchy(v_N, obs_errs[ii]) :
Expand All @@ -360,9 +360,9 @@ function create_general_mcmc_model(;
end

dm2 = m2_i - m2_f
return ( m1_i, m2_i, P_i, e_i, a_i, ν_i, vkick, θ, ϕ, frac, dm2, i_f, ω_f, Ω_f, m1_f, m2_f, a_f, P_f, e_f, K1, K2, v_N, v_E, v_r, vsys)
return ( m1_i, m2_i, P_i, e_i, a_i, ν_i, vkick, θ, ϕ, frac, dm2, i_f, ω_f, Ω_f, m1_f, m2_f, a_f, P_f, e_f, K1, K2, v_N, v_E, v_r, vsys)
end
return_props = [:m1_i, :m2_i, :P_i, :e_i, :a_i, :ν_i, :vkick, , , :frac, :dm2, :i_f, :ω_f, :Ω_f, :m1_f,:m2_f, :a_f, :P_f, :e_f, :K1, :K2, :v_N, :v_E, :v_r, :vsys]
return_props = [:m1_i, :m2_i, :P_i, :e_i, :a_i, :ν_i, :vkick, , , :frac, :dm2, :i_f, :ω_f, :Ω_f, :m1_f, :m2_f, :a_f, :P_f, :e_f, :K1, :K2, :v_N, :v_E, :v_r, :vsys]

# Need to combine some of the observations to compare against the predicted output
obs_vals_cgs = observations.vals .* observations.units
Expand Down

0 comments on commit 7ff025c

Please sign in to comment.