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

get_truncation(::AbstractGrid) #373

Merged
merged 1 commit into from
Sep 1, 2023
Merged

get_truncation(::AbstractGrid) #373

merged 1 commit into from
Sep 1, 2023

Conversation

milankl
Copy link
Member

@milankl milankl commented Sep 1, 2023

Solves

julia> map = randn(FullGaussianGrid,24);

julia> SpectralTransform(map)
ERROR: MethodError: no method matching get_truncation(::FullGaussianGrid{Float64})

Closest candidates are:
  get_truncation(::Integer)
   @ SpeedyWeather ~/.julia/packages/SpeedyWeather/5646I/src/SpeedyTransforms/aliasing.jl:9
  get_truncation(::Integer, ::Real)
   @ SpeedyWeather ~/.julia/packages/SpeedyWeather/5646I/src/SpeedyTransforms/aliasing.jl:9

Stacktrace:
 [1] SpectralTransform(map::FullGaussianGrid{Float64}; recompute_legendre::Bool)
   @ SpeedyWeather.SpeedyTransforms ~/.julia/packages/SpeedyWeather/5646I/src/SpeedyTransforms/spectral_transform.jl:239
 [2] SpectralTransform(map::FullGaussianGrid{Float64})
   @ SpeedyWeather.SpeedyTransforms ~/.julia/packages/SpeedyWeather/5646I/src/SpeedyTransforms/spectral_transform.jl:234
 [3] top-level scope
   @ REPL[179]:1

@milankl milankl added bug 🐞 Something isn't working array types 🔢 LowerTriangularMatrices and RingGrids labels Sep 1, 2023
@milankl milankl merged commit dfd8542 into main Sep 1, 2023
3 checks passed
@milankl milankl deleted the mk/grids branch September 7, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
array types 🔢 LowerTriangularMatrices and RingGrids bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant