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

ERROR: TypeError: non-boolean (typeof(GeometryBasics.update)) used in boolean context #14

Open
lazarusA opened this issue Feb 21, 2024 · 0 comments

Comments

@lazarusA
Copy link
Collaborator

I just tried to run the examples. It looks like is failing here

data = map(arr_obs, Makie.map_latest(identity, widget.value)) do arr, idx
And I'm getting this error for all cases. Also, do you have specific branches for some packages ?

ERROR: TypeError: non-boolean (typeof(GeometryBasics.update)) used in boolean context
Stacktrace:
  [1] on_latest(f::Makie.var"#78#80"{…}, to_track::Nothing, observable::Observable{…}; update::Function, spawn::Bool)
    @ Makie ~/.julia/packages/Makie/z2T2o/src/interaction/observables.jl:58
  [2] on_latest(f::Function, observable::Observable{Any}; update::Function, spawn::Bool)
    @ Makie ~/.julia/packages/Makie/z2T2o/src/interaction/observables.jl:21
  [3] onany_latest(f::Function, observables::Observable{Int64}; update::Function, spawn::Bool)
    @ Makie ~/.julia/packages/Makie/z2T2o/src/interaction/observables.jl:70
  [4] map_latest!(f::Function, result::Observable{Int64}, observables::Observable{Int64}; update::Function, spawn::Bool)
    @ Makie ~/.julia/packages/Makie/z2T2o/src/interaction/observables.jl:75
  [5] map_latest(f::Function, observables::Observable{Int64}; spawn::Bool, ignore_equal_values::Bool)
    @ Makie ~/.julia/packages/Makie/z2T2o/src/interaction/observables.jl:80
  [6] map_latest(f::Function, observables::Observable{Int64})
    @ Makie ~/.julia/packages/Makie/z2T2o/src/interaction/observables.jl:78
  [7] slice_dim(arr::Observable{YAXArray{Float32, 5, Array{…}, Tuple{…}}}, dim::Int64, dim_name::String)
    @ NDViewer ~/Documents/NDViewer.jl/src/widgets.jl:42
  [8] get_dims!(arrays::Dict{…}, widgets::Dict{…}, target_dims::Vector{…}, names::Vector{…})
    @ NDViewer ~/Documents/NDViewer.jl/src/layers.jl:47
  [9] get_dims!(arrays::Dict{…}, widgets::Dict{…}, target_dims::Vector{…}, names::Vector{…})
    @ NDViewer ~/Documents/NDViewer.jl/src/layers.jl:55
 [10] create_slices(layers::Vector{Dict{…}}, data::YAXArray{Float32, 5, Array{…}, Tuple{…}})
    @ NDViewer ~/Documents/NDViewer.jl/src/layers.jl:119
 [11] create_plot(data::YAXArray{Float32, 5, Array{…}, Tuple{…}}, layers::Vector{Dict{…}})
    @ NDViewer ~/Documents/NDViewer.jl/src/layers.jl:253
 [12] wgl_create_plot(data::YAXArray{Float32, 5, Array{…}, Tuple{…}}, layers::Vector{Dict{…}})
    @ NDViewer ~/Documents/NDViewer.jl/src/layers.jl:297
 [13] load_from_yaml(yaml_str::String)
    @ NDViewer ~/Documents/NDViewer.jl/src/loading.jl:39
 [14] top-level scope
    @ ~/Documents/NDViewer.jl/examples/generic.jl:47
Some type information was truncated. Use `show(err)` to see complete types.
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