Skip to content

breaking: compatability with unfold 0.7 #30

breaking: compatability with unfold 0.7

breaking: compatability with unfold 0.7 #30

Triggered via pull request June 24, 2024 18:39
@behingerbehinger
synchronize #8
unfold07
Status Failure
Total duration 16m 5s
Artifacts

CI.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/tutorial/two_stage_analysis.md:133-150 ```@example two_stage_analysis # Specify the predictors of interest predictor_dict = Dict(:continuous => range(0, 2, length = 3)) # Compute the marginal effects for all subjects separately effects_all_subjects = combine( groupby(models, :subject), :unfoldmodel => (m -> effects(predictor_dict, m[1])) => AsTable, ) # Aggregate the marginal effects (per event type, time point and channel) over subjects # using the mean as aggregation function aggregated_effects = @chain effects_all_subjects begin groupby([:basisname, :channel, collect(keys(predictor_dict))..., :time]) combine(:yhat .=> [x -> mean(skipmissing(x))] .=> Symbol("yhat_", mean)) end; first(aggregated_effects, 5) ``` exception = ArgumentError: column name :basisname not found in the data frame Stacktrace: [1] lookupname @ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:413 [inlined] [2] getindex @ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:422 [inlined] [3] (::DataFrames.var"#37#38"{DataFrames.Index})(i::Symbol) @ DataFrames ./none:0 [4] iterate @ ./generator.jl:47 [inlined] [5] collect(itr::Base.Generator{Vector{Symbol}, DataFrames.var"#37#38"{DataFrames.Index}}) @ Base ./array.jl:834 [6] getindex @ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:428 [inlined] [7] groupby(df::DataFrames.DataFrame, cols::Vector{Symbol}; sort::Nothing, skipmissing::Bool) @ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/groupeddataframe/groupeddataframe.jl:241 [8] groupby(df::DataFrames.DataFrame, cols::Vector{Symbol}) @ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/groupeddataframe/groupeddataframe.jl:218 [9] top-level scope @ two_stage_analysis.md:146 [10] eval @ ./boot.jl:385 [inlined] [11] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [12] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [13] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [14] (::IOCapture.var"#5#9"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [15] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [16] with_logger @ ./logging.jl:627 [inlined] [17] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [18] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/tutorial/two_stage_analysis.md:168-187 ```@example two_stage_analysis # Set the size of the time bins for the topoplot series bin_size = 0.1 f_effects = Figure(size = (1200, 600)) tp_effects = plot_topoplotseries!( f_effects, aggregated_effects, bin_size, positions = pos2d, mapping = (; y = :yhat_mean, row = :continuous), visual = (; enlarge = 0.6, label_scatter = false, colorrange = (-3, 3)), ) ax = current_axis() linkaxes!(tp_effects.content[1:end-2]...) xlims!(ax, 0, 0.9) ylims!(ax, 0, 0.9) current_figure() ``` exception = UndefVarError: `aggregated_effects` not defined Stacktrace: [1] top-level scope @ two_stage_analysis.md:173 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/tutorial/two_stage_analysis.md:198-221 ```@example two_stage_analysis # Extract the spline coefficients for the `continuous` predictor variable # from the Unfold models of all subjects basisname = unique(effects_all_subjects.basisname) coefs = extract_coefs(models.unfoldmodel, :continuous, basisname) # Conduct a one-sample Hotelling's T² test separately for all channels and time points # and compute a p-value. We compare the spline coefficients vector against 0. p_values = mapslices(c -> pvalue(OneSampleHotellingT2Test(c', [0, 0, 0])), coefs, dims = (3, 4)) |> x -> dropdims(x, dims = (3, 4)); times = unique(effects_all_subjects.time) channels = axes(p_values, 1) # For visualization purposes, save the p_values in a data frame together with time and channel p_values_df = DataFrame( channel = repeat(channels, outer = length(times)), time = repeat(times, inner = length(channels)), p_values = p_values[:], ); first(p_values_df, 5) ``` exception = ArgumentError: column name :basisname not found in the data frame Stacktrace: [1] lookupname @ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:413 [inlined] [2] getindex @ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:422 [inlined] [3] getindex(df::DataFrames.DataFrame, ::typeof(!), col_ind::Symbol) @ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/dataframe/dataframe.jl:557 [4] getproperty(df::DataFrames.DataFrame, col_ind::Symbol) @ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/abstractdataframe/abstractdataframe.jl:431 [5] top-level scope @ two_stage_analysis.md:201 [6] eval @ ./boot.jl:385 [inlined] [7] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [8] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [9] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [10] (::IOCapture.var"#5#9"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [11] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [12] with_logger @ ./logging.jl:627 [inlined] [13] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [14] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/tutorial/two_stage_analysis.md:225-244 ```@example two_stage_analysis bin_size = 0.1 f_pvalues = Figure(size = (1200, 200)) tp_pvalues = plot_topoplotseries!( f_pvalues, p_values_df, bin_size, positions = pos2d, mapping = (; y = :p_values), visual = (; enlarge = 0.6, label_scatter = false, colorrange = (0, 0.1)), colorbar = (; label = "p-value"), ) ax = current_axis() linkaxes!(tp_pvalues.content[1:end-2]...) xlims!(ax, 0, 0.9) ylims!(ax, 0, 0.9) current_figure() ``` exception = UndefVarError: `p_values_df` not defined Stacktrace: [1] top-level scope @ two_stage_analysis.md:229 [2] eval @ ./boot.jl:385 [inlined] [3] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170 [7] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [8] with_logger @ ./logging.jl:627 [inlined] [9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any}) @ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167 [10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation
Process completed with exit code 1.
Julia 1 - ubuntu-latest - x64 - pull_request
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.