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

Acoustic Analysis Error #115

Closed
ilm71 opened this issue Nov 17, 2023 · 2 comments
Closed

Acoustic Analysis Error #115

ilm71 opened this issue Nov 17, 2023 · 2 comments

Comments

@ilm71
Copy link

ilm71 commented Nov 17, 2023

Dear All,

I am currently running acoustic postprocessing which is working quite well until the following error occours:

julia> # Read datasets and stores them in dictionaries
noise.read_data(dataset_infos; datasets_pww=datasets_pww, datasets_bpm=datasets_bpm)


  • Reading dataset /xy/example

Reading output file pressure.nam ...
    Found 72x1 grid in WOPWOP output with 1440 time steps.
Reading output file segmentProcess/spl_spectrum.nam ...
    Found 72x1 grid in WOPWOP output with 721 time steps.

ERROR: MethodError: Cannot convert an object of type Symbol to an object of type Float64
Closest candidates are:
convert(::Type{T}, ::ColorTypes.Gray24) where T<:Real at ~/.julia/packages/ColorTypes/1dGw6/src/conversions.jl:114
convert(::Type{T}, ::ColorTypes.Gray) where T<:Real at ~/.julia/packages/ColorTypes/1dGw6/src/conversions.jl:113
convert(::Type{T}, ::Base.TwicePrecision) where T<:Number at twiceprecision.jl:273
...
Stacktrace:
[1] setindex!(::Array{Float64, 4}, ::Symbol, ::Int64, ::Int64, ::Int64, ::Vararg{Int64})
@ Base ./array.jl:968
[2] read_wopwopoutput(outputname::String; read_path::String, verbose::Bool, verbose_level::Int64, v_lvl::Int64, tec::Bool)
@ FLOWNoise ~/.julia/packages/FLOWNoise/t5EXx/src/FLOWNoise_wopwop.jl:120
[3] #read_pwwfield#63
@ ~/.julia/packages/FLOWNoise/t5EXx/src/FLOWNoise_wopwop.jl:943 [inlined]
[4] read_pwwfield(fieldnames::Vector{String}, read_path::String; re20crit::Vector{String}, tec::Bool, optargs::Base.Pairs{Symbol, Integer, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:verbose, :verbose_level, :v_lvl), Tuple{Bool, Int64, Int64}}})
@ FLOWNoise ~/.julia/packages/FLOWNoise/t5EXx/src/FLOWNoise_wopwop.jl:964
[5] fetch_pwwfield(::String; fieldnames::Vector{String}, datasets::Dict{Any, Any}, verbose::Bool, v_lvl::Int64, verbose_level::Int64, optargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ FLOWNoise ~/.julia/packages/FLOWNoise/t5EXx/src/FLOWNoise_wopwop.jl:983
[6] fetch_pwwdataset(::String; datasets::Dict{Any, Any}, verbose::Bool, v_lvl::Int64, force_read::Bool, optargs::Base.Pairs{Symbol, Vector{String}, Tuple{Symbol}, NamedTuple{(:fieldnames,), Tuple{Vector{String}}}})
@ FLOWNoise ~/.julia/packages/FLOWNoise/t5EXx/src/FLOWNoise_wopwop.jl:998
[7] read_data(dataset_infos::Vector{NTuple{5, String}}; datasets_pww::Dict{Any, Any}, datasets_bpm::Dict{Any, Any}, pww_fieldnames::Vector{String}, bpm_fieldnames::Vector{String}, optargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ FLOWNoise ~/.julia/packages/FLOWNoise/t5EXx/src/FLOWNoise_postprocessing.jl:64
[8] top-level scope
@ REPL[405]:2

do you have an idea how I can fix this issue?

Many thanks in advance!

@ilm71
Copy link
Author

ilm71 commented Nov 23, 2023

problem has been solved

@ilm71
Copy link
Author

ilm71 commented Nov 23, 2023

solved

@ilm71 ilm71 closed this as completed Nov 23, 2023
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

1 participant