We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a553a commit 2d5f9e0Copy full SHA for 2d5f9e0
src/nominal.jl
@@ -35,4 +35,4 @@ Return the nominal value of `p` (assumes that `p` has bee endowed with a nominal
35
"""
36
nominal(p::AbstractParticles) = p[1]
37
nominal(p::MvParticles) = nominal.(p)
38
-nominal(P) = replace_particles(P, replacer=P->nominal(P))
+nominal(P) = replace_particles(P, replacer=nominal)
test/runtests.jl
@@ -787,7 +787,10 @@ Random.seed!(0)
787
pn = with_nominal(p, n)
788
@test nominal(pn) == getindex.(pn, 1) == n
789
@test nominal(p) != n
790
-
+
791
+ P = complex(1 ± 0.1, 2 ± 0.1)
792
+ @test nominal(P) == complex(real(P)[1], imag(P)[1])
793
794
end
795
796
include("test_unitful.jl")
0 commit comments