Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Nside a tuple by default #40

Closed
cailmdaley opened this issue Dec 22, 2020 · 1 comment
Closed

Make Nside a tuple by default #40

cailmdaley opened this issue Dec 22, 2020 · 1 comment

Comments

@cailmdaley
Copy link
Collaborator

Currently Nside=4 and Nside=(4,4) don't broadcast together; a possible solution would be to always convert Nside to a tuple. @marius311 suggested

Flat(;Nside, θpix=θpix₀, ∂mode=fourier∂, D=1) = Flat{Nside .* (1,1), θpix, ∂mode, D}

in flat_fftgrid.jl

@marius311
Copy link
Owner

Fixed on master:

julia> load_sim(Nside=128, θpix=1, pol=:I).f .+ load_sim(Nside=(128,128), θpix=1, pol=:I).f
8320-element 128×128-pixel 1.0-resolution FlatFourier{Array{ComplexF32, 2},ProjLambert{Float32}}:
        0.0f0 + 0.0f0im
 -109720.81f0 + 22605.188f0im
              
 -549.03394f0 + 17.136276f0im
  230.41385f0 + 396.14264f0im

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants