Skip to content

Commit

Permalink
Fix regression in octocorner
Browse files Browse the repository at this point in the history
  • Loading branch information
sefffal committed Mar 7, 2024
1 parent 1b42a89 commit f3c21b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/src/fit-interfere.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,7 @@ fig

Finally we can examine the joint photometry and orbit posterior as a corner plot:
```@example 1
using PairPlots
using CairoMakie: Makie
octocorner(model, results)
```
4 changes: 2 additions & 2 deletions src/analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ the posterior or the prior), produce a panel of 9 plots visualizing the orbits.
The output is saved to a file based on the name of the system (`fname`).
"""
function octoplot(model::System, ::Any)
error("You must load the Plots.jl package (`using Plots`) before calling this function. Then, pass your model and chain result as arguments.")
error("You must load the Plots.jl package (`using Plots`) before calling this function. Then, pass your model and chain result as arguments. If you're seeing this message despite loading those packages, check that you are passing the correct argument types.")
end
function Octofitter.octoplot(model::Octofitter.LogDensityModel, args...; kwargs...)
return Octofitter.octoplot(model.system, args...; kwargs...)
end

function octocorner end
function octocorner(model::System, ::Any)
error("You must load the Makie package (eg `using CairoMakie`) and PairPlots package (eg `using PairPlots`) before calling this function. Then, pass your model and chain result as arguments.")
error("You must load the Makie package (eg `using CairoMakie`) and PairPlots package (eg `using PairPlots`) before calling this function. Then, pass your model and chain result as arguments. If you're seeing this message despite loading those packages, check that you are passing the correct argument types.")
end
function Octofitter.octocorner(model::Octofitter.LogDensityModel, args...; kwargs...)
return Octofitter.octocorner(model.system, args...; kwargs...)
Expand Down

0 comments on commit f3c21b3

Please sign in to comment.