Skip to content

Commit

Permalink
Fix observable call due to something being now a keyword (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Aug 11, 2024
1 parent 47528b2 commit 29d78f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/QuantumSavoryMakie/QuantumSavoryMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function Makie.plot!(rn::RegisterNetPlot{<:Tuple{RegisterNet}})
## the colors and locations for various observables
if !isnothing(rn[:observables][])
for (O, rsidx, links) in rn[:observables][]
val = real(observable(tuple((network[rs...] for rs in rsidx)...), O, NaN))
val = real(observable(tuple((network[rs...] for rs in rsidx)...), O; something=NaN))
# TODO issue a warning if val has (percentage-wise) significant imaginary component (here, for plotting, when we implicitly are taking the real part)
for (iʳᵉᵍ, iˢˡᵒᵗ) in rsidx
= registercoords[iʳᵉᵍ][1]
Expand Down

0 comments on commit 29d78f8

Please sign in to comment.