diff --git a/Project.toml b/Project.toml index ef560a8..798b0b8 100644 --- a/Project.toml +++ b/Project.toml @@ -17,8 +17,8 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [compat] DocStringExtensions = "0.6, 0.7, 0.8" CoordinateTransformations = "0.5, 0.6" -Interpolations = "0.12, 0.13" -JuliennedArrays = "0.2" +Interpolations = "0.12, 0.13, 0.14" +JuliennedArrays = "0.2, 0.3" RecipesBase = "1.0" Rotations = "0.12, 0.13, 1.0" StaticArrays = "0.12, 1.0" diff --git a/test/real_manifold.jl b/test/real_manifold.jl index 62eb883..51561b8 100644 --- a/test/real_manifold.jl +++ b/test/real_manifold.jl @@ -24,8 +24,8 @@ end @test lut_expanded[i,13,3:12] == circshift(lut_expanded[i,11,3:12], 5) end - @test PhasedArray.calc_expansion_length(Constant) == 0 - @test PhasedArray.calc_expansion_length(Constant) == 0 + @test PhasedArray.calc_expansion_length(Constant) == 1 + @test PhasedArray.calc_expansion_length(Constant) == 1 @test PhasedArray.calc_expansion_length(Quadratic) == 18 end @@ -48,6 +48,10 @@ end @test @inferred(get_steer_vec(manifold, Spherical(1,0,0), RotXYZ(0.0,0.0,π/2))) ≈ [1im, 1im, -1im, -1im] @test @inferred(get_steer_vec(manifold, SVector(1,0,0), RotXYZ(0.0,0.0,π/2))) ≈ [1im, 1im, -1im, -1im] + # This errored before: + doa = SVector(0.25394112649966244, -9.029703527250079e-6, 0.9672196773176954) + @test @inferred(get_steer_vec(manifold, doa)) ≈ [0.9184897712563223 + 0.3954447370967388im, 0.9184897712563223 - 0.3954447370967388im, 0.9184897712563223 + 0.3954447370967388im, 0.9184897712563223 - 0.3954447370967388im] + manifold = @inferred RealManifold(lut[1], lut[2], lut[3], lut[4], max_elevation = π / 2) @test typeof(manifold) <: AbstractManifold{4} @test norm(@inferred(get_steer_vec(manifold, SVector(1, 1, 1)))) ≈ sqrt(num_ants)