From 29d78f8b545ab09cc4720db2bc1aa6563eafb1d1 Mon Sep 17 00:00:00 2001 From: Adriano Meligrana <68152031+Tortar@users.noreply.github.com> Date: Sun, 11 Aug 2024 20:49:04 +0200 Subject: [PATCH] Fix observable call due to something being now a keyword (#145) --- ext/QuantumSavoryMakie/QuantumSavoryMakie.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl b/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl index 25f5482a..2aa65390 100644 --- a/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl +++ b/ext/QuantumSavoryMakie/QuantumSavoryMakie.jl @@ -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 xˢ = registercoords[iʳᵉᵍ][1]