Skip to content

Commit

Permalink
move DisplayAs using
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Jun 13, 2024
1 parent 69f48b1 commit 84efba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/intermediate/StokesIImaging/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ xopt, sol = comrade_opt(post, Optimisers.Adam(), Optimization.AutoZygote(); init
#-
# First we will evaluate our fit by plotting the residuals
using Plots
using DisplayAs
residual(post, xopt) |> DisplayAs.PNG |> DisplayAs.Text

# These look reasonable, although there may be some minor overfitting. This could be
# improved in a few ways, but that is beyond the goal of this quick tutorial.
# Plotting the image, we see that we have a much cleaner version of the closure-only image from
# [Imaging a Black Hole using only Closure Quantities](@ref).
import CairoMakie as CM
using DisplayAs
CM.activate!(type = "png", px_per_unit=3) #hide
g = imagepixels(fovx, fovy, 128, 128)
img = intensitymap(skymodel(post, xopt), g)
Expand Down

0 comments on commit 84efba5

Please sign in to comment.