Changes from Sven#64
Conversation
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
JuliaFormatter
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 429 to 430 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 433 to 434 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Line 443 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 528 to 529 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 536 to 538 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 543 to 544 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Line 563 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 703 to 704 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 807 to 812 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Lines 829 to 830 in f450ad3
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/serve_widgets.jl
Line 833 in f450ad3
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
maybe this helps running the auto-test on github?
|
Yes, it seems correct! |
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
JuliaFormatter
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/lib/live/app_builder.jl
Lines 82 to 83 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/lib/live/app_builder.jl
Lines 140 to 141 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/lib/live/auto_playback.jl
Line 336 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/lib/live/auto_playback.jl
Line 377 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/lib/synthetic_data.jl
Lines 17 to 20 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/lib/synthetic_data.jl
Line 39 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/live_playback.jl
Line 80 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/report_io.jl
Lines 31 to 42 in 1ae32fc
[JuliaFormatter] reported by reviewdog 🐶
ERPExplorer.jl/test/report_io.jl
Lines 50 to 59 in 1ae32fc
| term_type(t) = typeof(t).name.name | ||
|
|
||
| is_continuous_like(term_type::Symbol) = term_type in (:ContinuousTerm, :BSplineTerm) | ||
| is_supported_plot_term(term_type::Symbol) = term_type in (:CategoricalTerm, :ContinuousTerm, :BSplineTerm) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| is_supported_plot_term(term_type::Symbol) = term_type in (:CategoricalTerm, :ContinuousTerm, :BSplineTerm) | |
| is_supported_plot_term(term_type::Symbol) = | |
| term_type in (:CategoricalTerm, :ContinuousTerm, :BSplineTerm) |
| live_ids = Set(action_ids_for_scope(ACTION_SCOPE_LIVE)) | ||
| bench_ids = Set(action_ids_for_scope(ACTION_SCOPE_BENCH)) | ||
|
|
||
| default_live_ids = read_action_scenario(joinpath(@__DIR__, "livebench_actions_default.txt")) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| default_live_ids = read_action_scenario(joinpath(@__DIR__, "livebench_actions_default.txt")) | |
| default_live_ids = | |
| read_action_scenario(joinpath(@__DIR__, "livebench_actions_default.txt")) |
| @test live_cfg.live_start_delay_sec == 2.5 | ||
| @test live_cfg.live_action_timeout_sec == 30.0 | ||
|
|
||
| default_live_cfg = parse_harness_config(["--mode=bench-live-auto"]; script_dir = script_dir) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| default_live_cfg = parse_harness_config(["--mode=bench-live-auto"]; script_dir = script_dir) | |
| default_live_cfg = | |
| parse_harness_config(["--mode=bench-live-auto"]; script_dir = script_dir) |
| const CONFIG = parse_harness_config( | ||
| ARGS; | ||
| script_dir = SCRIPT_DIR, | ||
| ) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| const CONFIG = parse_harness_config( | |
| ARGS; | |
| script_dir = SCRIPT_DIR, | |
| ) | |
| const CONFIG = parse_harness_config(ARGS; script_dir = SCRIPT_DIR) |
| HarnessConfig, | ||
| MODE_HELP, | ||
| MODE_SERVE, | ||
| MODE_BENCH, | ||
| MODE_BENCH_LIVE_AUTO, | ||
| DEFAULT_HOST, | ||
| DEFAULT_PORT, | ||
| DEFAULT_SFREQ, | ||
| DEFAULT_BENCH_REPEATS, | ||
| DEFAULT_BENCH_WARMUP, | ||
| DEFAULT_BENCH_CHANNEL, | ||
| DEFAULT_LIVE_START_DELAY_SEC, | ||
| DEFAULT_LIVE_STEP_DELAY_SEC, | ||
| DEFAULT_LIVE_RENDER_SETTLE_DELAY_SEC, | ||
| DEFAULT_LIVE_ACTION_TIMEOUT_SEC, | ||
| parse_cli_args, | ||
| parse_harness_config, | ||
| usage_text, | ||
| action_registry, | ||
| registered_action_ids, | ||
| action_ids_for_scope, | ||
| live_action_triggers_render, | ||
| default_bench_scenario, | ||
| ensure_registered_action_ids, | ||
| read_action_scenario, | ||
| load_validated_scenario, | ||
| default_bench_report_path, | ||
| default_live_report_path, | ||
| write_bench_csv, | ||
| write_live_csv, | ||
| run_offline_benchmark, | ||
| build_live_benchmark_app, | ||
| start_harness_server, | ||
| build_benchmark_fixture, | ||
| ACTION_SCOPE_BENCH, | ||
| ACTION_SCOPE_LIVE |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| HarnessConfig, | |
| MODE_HELP, | |
| MODE_SERVE, | |
| MODE_BENCH, | |
| MODE_BENCH_LIVE_AUTO, | |
| DEFAULT_HOST, | |
| DEFAULT_PORT, | |
| DEFAULT_SFREQ, | |
| DEFAULT_BENCH_REPEATS, | |
| DEFAULT_BENCH_WARMUP, | |
| DEFAULT_BENCH_CHANNEL, | |
| DEFAULT_LIVE_START_DELAY_SEC, | |
| DEFAULT_LIVE_STEP_DELAY_SEC, | |
| DEFAULT_LIVE_RENDER_SETTLE_DELAY_SEC, | |
| DEFAULT_LIVE_ACTION_TIMEOUT_SEC, | |
| parse_cli_args, | |
| parse_harness_config, | |
| usage_text, | |
| action_registry, | |
| registered_action_ids, | |
| action_ids_for_scope, | |
| live_action_triggers_render, | |
| default_bench_scenario, | |
| ensure_registered_action_ids, | |
| read_action_scenario, | |
| load_validated_scenario, | |
| default_bench_report_path, | |
| default_live_report_path, | |
| write_bench_csv, | |
| write_live_csv, | |
| run_offline_benchmark, | |
| build_live_benchmark_app, | |
| start_harness_server, | |
| build_benchmark_fixture, | |
| ACTION_SCOPE_BENCH, | |
| ACTION_SCOPE_LIVE | |
| HarnessConfig, | |
| MODE_HELP, | |
| MODE_SERVE, | |
| MODE_BENCH, | |
| MODE_BENCH_LIVE_AUTO, | |
| DEFAULT_HOST, | |
| DEFAULT_PORT, | |
| DEFAULT_SFREQ, | |
| DEFAULT_BENCH_REPEATS, | |
| DEFAULT_BENCH_WARMUP, | |
| DEFAULT_BENCH_CHANNEL, | |
| DEFAULT_LIVE_START_DELAY_SEC, | |
| DEFAULT_LIVE_STEP_DELAY_SEC, | |
| DEFAULT_LIVE_RENDER_SETTLE_DELAY_SEC, | |
| DEFAULT_LIVE_ACTION_TIMEOUT_SEC, | |
| parse_cli_args, | |
| parse_harness_config, | |
| usage_text, | |
| action_registry, | |
| registered_action_ids, | |
| action_ids_for_scope, | |
| live_action_triggers_render, | |
| default_bench_scenario, | |
| ensure_registered_action_ids, | |
| read_action_scenario, | |
| load_validated_scenario, | |
| default_bench_report_path, | |
| default_live_report_path, | |
| write_bench_csv, | |
| write_live_csv, | |
| run_offline_benchmark, | |
| build_live_benchmark_app, | |
| start_harness_server, | |
| build_benchmark_fixture, | |
| ACTION_SCOPE_BENCH, | |
| ACTION_SCOPE_LIVE |
| isempty(unknown_flags) || | ||
| error("Unknown flag(s): $(join("--" .* unknown_flags, ", ")). Use --help for usage.") |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| isempty(unknown_flags) || | |
| error("Unknown flag(s): $(join("--" .* unknown_flags, ", ")). Use --help for usage.") | |
| isempty(unknown_flags) || error( | |
| "Unknown flag(s): $(join("--" .* unknown_flags, ", ")). Use --help for usage.", | |
| ) |
| bench_repeats = _parse_int(parsed.options, "bench-repeats", DEFAULT_BENCH_REPEATS; min_value = 1) | ||
| bench_warmup = _parse_int(parsed.options, "bench-warmup", DEFAULT_BENCH_WARMUP; min_value = 0) | ||
| bench_channel = _parse_int(parsed.options, "bench-channel", DEFAULT_BENCH_CHANNEL; min_value = 1) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| bench_repeats = _parse_int(parsed.options, "bench-repeats", DEFAULT_BENCH_REPEATS; min_value = 1) | |
| bench_warmup = _parse_int(parsed.options, "bench-warmup", DEFAULT_BENCH_WARMUP; min_value = 0) | |
| bench_channel = _parse_int(parsed.options, "bench-channel", DEFAULT_BENCH_CHANNEL; min_value = 1) | |
| bench_repeats = | |
| _parse_int(parsed.options, "bench-repeats", DEFAULT_BENCH_REPEATS; min_value = 1) | |
| bench_warmup = | |
| _parse_int(parsed.options, "bench-warmup", DEFAULT_BENCH_WARMUP; min_value = 0) | |
| bench_channel = | |
| _parse_int(parsed.options, "bench-channel", DEFAULT_BENCH_CHANNEL; min_value = 1) |
| live_action_timeout_sec <= 0.0 && error( | ||
| "Option --bench-live-timeout must be > 0, got $(live_action_timeout_sec).", | ||
| ) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| live_action_timeout_sec <= 0.0 && error( | |
| "Option --bench-live-timeout must be > 0, got $(live_action_timeout_sec).", | |
| ) | |
| live_action_timeout_sec <= 0.0 && | |
| error("Option --bench-live-timeout must be > 0, got $(live_action_timeout_sec).") |
| default_live_report_path(config, config.live_actions_file) : | ||
| config.live_report_file |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| default_live_report_path(config, config.live_actions_file) : | |
| config.live_report_file | |
| default_live_report_path(config, config.live_actions_file) : config.live_report_file |
| cat_terms = var_names[var_types .== :CategoricalTerm] | ||
| cont_terms = var_names[ERPExplorer.is_continuous_like.(var_types)] | ||
|
|
||
| mapping, mapping_dom, mapping_controls = build_mapping_controls(var_names, var_types) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| mapping, mapping_dom, mapping_controls = build_mapping_controls(var_names, var_types) | |
| mapping, mapping_dom, mapping_controls = | |
| build_mapping_controls(var_names, var_types) |
| for (term, value_state) in formula_state | ||
| if !isempty(value_state) && value_state[1] && !isempty(value_state[2]) | ||
| push!(active_terms, term) | ||
| yhat_dict[term] = ERPExplorer.widget_value(value_state[2], value_state[3]) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| yhat_dict[term] = ERPExplorer.widget_value(value_state[2], value_state[3]) | |
| yhat_dict[term] = | |
| ERPExplorer.widget_value(value_state[2], value_state[3]) |
| bindings = LiveUiBindings(set_term_enabled!, set_mapping_slot!, set_channel!, reset_view!) | ||
| maybe_start_auto!() = maybe_start_auto_playback!(playback, bindings, config.live_actions_file) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| bindings = LiveUiBindings(set_term_enabled!, set_mapping_slot!, set_channel!, reset_view!) | |
| maybe_start_auto!() = maybe_start_auto_playback!(playback, bindings, config.live_actions_file) | |
| bindings = | |
| LiveUiBindings(set_term_enabled!, set_mapping_slot!, set_channel!, reset_view!) | |
| maybe_start_auto!() = | |
| maybe_start_auto_playback!(playback, bindings, config.live_actions_file) |
| try | ||
| apply_live_action!(bindings, action_id) | ||
| catch err | ||
| println("auto-livebench warmup failed: ", action_id, " :: ", sprint(showerror, err)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| println("auto-livebench warmup failed: ", action_id, " :: ", sprint(showerror, err)) | |
| println( | |
| "auto-livebench warmup failed: ", | |
| action_id, | |
| " :: ", | |
| sprint(showerror, err), | |
| ) |
| try | ||
| apply_live_action!(bindings, action_id) | ||
| catch err | ||
| println("auto-livebench action failed: ", action_id, " :: ", sprint(showerror, err)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| println("auto-livebench action failed: ", action_id, " :: ", sprint(showerror, err)) | |
| println( | |
| "auto-livebench action failed: ", | |
| action_id, | |
| " :: ", | |
| sprint(showerror, err), | |
| ) |
|
|
||
| Start the Bonito server for the harness app and print the URL. | ||
| """ | ||
| function start_harness_server(app; host::AbstractString = DEFAULT_HOST, port::Int = DEFAULT_PORT) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| function start_harness_server(app; host::AbstractString = DEFAULT_HOST, port::Int = DEFAULT_PORT) | |
| function start_harness_server( | |
| app; | |
| host::AbstractString = DEFAULT_HOST, | |
| port::Int = DEFAULT_PORT, | |
| ) |
| d1 .+ | ||
| 3 * sin.(0.1 * pi * i .+ Random.rand() * 2π) .+ | ||
| 2 * sin.(0.3 * pi * i .* (1:n_timepoints)) .+ | ||
| Random.randn(size(d1)...) .* 5 .+ |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| d1 .+ | |
| 3 * sin.(0.1 * pi * i .+ Random.rand() * 2π) .+ | |
| 2 * sin.(0.3 * pi * i .* (1:n_timepoints)) .+ | |
| Random.randn(size(d1)...) .* 5 .+ | |
| d1 .+ 3 * sin.(0.1 * pi * i .+ Random.rand() * 2π) .+ | |
| 2 * sin.(0.3 * pi * i .* (1:n_timepoints)) .+ Random.randn(size(d1)...) .* 5 .+ |
| ), | ||
| ), | ||
| :animal => Random.shuffle(repeat(["cat", "dog"], outer = div(n_events, 2))), | ||
| :fruit => Random.shuffle(repeat(["orange", "banana"], outer = div(n_events, 2))), |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| :fruit => Random.shuffle(repeat(["orange", "banana"], outer = div(n_events, 2))), | |
| :fruit => | |
| Random.shuffle(repeat(["orange", "banana"], outer = div(n_events, 2))), |
| ["toggle_luminance_on"], | ||
| joinpath(mktempdir(), "render_timeout.csv"), | ||
| ) | ||
| DashboardBenchHarness.begin_auto_action!(render_timeout_state, "toggle_luminance_on", true) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| DashboardBenchHarness.begin_auto_action!(render_timeout_state, "toggle_luminance_on", true) | |
| DashboardBenchHarness.begin_auto_action!( | |
| render_timeout_state, | |
| "toggle_luminance_on", | |
| true, | |
| ) |
| [ | ||
| ( | ||
| action_id = "baseline", | ||
| success = true, | ||
| runs_completed = 1, | ||
| runs_requested = 1, | ||
| effects_median_ms = 1.0, | ||
| update_grid_median_ms = 2.0, | ||
| total_median_ms = 3.0, | ||
| error_message = "", | ||
| ), | ||
| ], |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| [ | |
| ( | |
| action_id = "baseline", | |
| success = true, | |
| runs_completed = 1, | |
| runs_requested = 1, | |
| effects_median_ms = 1.0, | |
| update_grid_median_ms = 2.0, | |
| total_median_ms = 3.0, | |
| error_message = "", | |
| ), | |
| ], | |
| [( | |
| action_id = "baseline", | |
| success = true, | |
| runs_completed = 1, | |
| runs_requested = 1, | |
| effects_median_ms = 1.0, | |
| update_grid_median_ms = 2.0, | |
| total_median_ms = 3.0, | |
| error_message = "", | |
| ),], |
| [ | ||
| ( | ||
| sequence = 1, | ||
| event_source = "auto:baseline", | ||
| action_id = "baseline", | ||
| effects_ms = 1.0, | ||
| plot_layout_ms = 2.0, | ||
| total_ms = 3.0, | ||
| ), | ||
| ], |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| [ | |
| ( | |
| sequence = 1, | |
| event_source = "auto:baseline", | |
| action_id = "baseline", | |
| effects_ms = 1.0, | |
| plot_layout_ms = 2.0, | |
| total_ms = 3.0, | |
| ), | |
| ], | |
| [( | |
| sequence = 1, | |
| event_source = "auto:baseline", | |
| action_id = "baseline", | |
| effects_ms = 1.0, | |
| plot_layout_ms = 2.0, | |
| total_ms = 3.0, | |
| ),], |
| end | ||
| render_count[] += 1 | ||
| elapsed_ms = (time_ns() - t0) / 1e6 | ||
| println("render #", render_count[], " update_grid -> layout in ", round(elapsed_ms; digits = 2), " ms") |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| println("render #", render_count[], " update_grid -> layout in ", round(elapsed_ms; digits = 2), " ms") | |
| println( | |
| "render #", | |
| render_count[], | |
| " update_grid -> layout in ", | |
| round(elapsed_ms; digits = 2), | |
| " ms", | |
| ) |
| res = DOM.div( | ||
| css, | ||
| Bonito.TailwindCSS, | ||
| cards; | ||
| style = Styles( | ||
| "height" => "$(1.2*size[2])px", | ||
| "width" => "$(size[1])px", | ||
| "margin" => "20px", | ||
| "position" => :relative, | ||
| ), | ||
| style = container_style, | ||
| ) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| res = DOM.div( | |
| css, | |
| Bonito.TailwindCSS, | |
| cards; | |
| style = Styles( | |
| "height" => "$(1.2*size[2])px", | |
| "width" => "$(size[1])px", | |
| "margin" => "20px", | |
| "position" => :relative, | |
| ), | |
| style = container_style, | |
| ) | |
| res = DOM.div(css, Bonito.TailwindCSS, cards; style = container_style) |
| cat_color = get(cat_active, mapping_state[:color], false) ? mapping_state[:color] : nothing | ||
| cat_marker = get(cat_active, mapping_state[:marker], false) ? mapping_state[:marker] : nothing |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| cat_color = get(cat_active, mapping_state[:color], false) ? mapping_state[:color] : nothing | |
| cat_marker = get(cat_active, mapping_state[:marker], false) ? mapping_state[:marker] : nothing | |
| cat_color = | |
| get(cat_active, mapping_state[:color], false) ? mapping_state[:color] : nothing | |
| cat_marker = | |
| get(cat_active, mapping_state[:marker], false) ? mapping_state[:marker] : nothing |
| base = AlgebraOfGraphics.data(plot_data) * | ||
| AlgebraOfGraphics.mapping(:time_axis, :yhat; pairs(facet_aes)...) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| base = AlgebraOfGraphics.data(plot_data) * | |
| AlgebraOfGraphics.mapping(:time_axis, :yhat; pairs(facet_aes)...) | |
| base = | |
| AlgebraOfGraphics.data(plot_data) * | |
| AlgebraOfGraphics.mapping(:time_axis, :yhat; pairs(facet_aes)...) |
| scatter_layer = AlgebraOfGraphics.mapping(; pairs(scatter_aes)...) * | ||
| AlgebraOfGraphics.visual( | ||
| Scatter; | ||
| markersize = plot_markersize, | ||
| legend = (; markersize = 10.0), | ||
| scatter_visual_kwargs..., | ||
| ) | ||
| line_layer = AlgebraOfGraphics.mapping(; pairs(line_aes)...) * | ||
| AlgebraOfGraphics.visual( | ||
| Lines; | ||
| legend = (; linewidth = 1.5), | ||
| line_visual_kwargs..., | ||
| ) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| scatter_layer = AlgebraOfGraphics.mapping(; pairs(scatter_aes)...) * | |
| AlgebraOfGraphics.visual( | |
| Scatter; | |
| markersize = plot_markersize, | |
| legend = (; markersize = 10.0), | |
| scatter_visual_kwargs..., | |
| ) | |
| line_layer = AlgebraOfGraphics.mapping(; pairs(line_aes)...) * | |
| AlgebraOfGraphics.visual( | |
| Lines; | |
| legend = (; linewidth = 1.5), | |
| line_visual_kwargs..., | |
| ) | |
| scatter_layer = | |
| AlgebraOfGraphics.mapping(; pairs(scatter_aes)...) * AlgebraOfGraphics.visual( | |
| Scatter; | |
| markersize = plot_markersize, | |
| legend = (; markersize = 10.0), | |
| scatter_visual_kwargs..., | |
| ) | |
| line_layer = | |
| AlgebraOfGraphics.mapping(; pairs(line_aes)...) * | |
| AlgebraOfGraphics.visual(Lines; legend = (; linewidth = 1.5), line_visual_kwargs...) |
| scales_kwargs[:Marker] = | ||
| (; | ||
| palette = [:circle, :xcross, :star4, :diamond], | ||
| categories = categorical_levels(cat_marker), | ||
| ) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| scales_kwargs[:Marker] = | |
| (; | |
| palette = [:circle, :xcross, :star4, :diamond], | |
| categories = categorical_levels(cat_marker), | |
| ) | |
| scales_kwargs[:Marker] = (; | |
| palette = [:circle, :xcross, :star4, :diamond], | |
| categories = categorical_levels(cat_marker), | |
| ) |
| # Translate validated axis config into kwargs consumed by AoG draw. | ||
| # `xlabel` falls back to x-unit dependent default when not explicitly set. | ||
| axis_kwargs = Dict{Symbol,Any}() | ||
| axis_kwargs[:xlabel] = isnothing(axis_config[:xlabel]) ? default_xlabel : axis_config[:xlabel] |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| axis_kwargs[:xlabel] = isnothing(axis_config[:xlabel]) ? default_xlabel : axis_config[:xlabel] | |
| axis_kwargs[:xlabel] = | |
| isnothing(axis_config[:xlabel]) ? default_xlabel : axis_config[:xlabel] |
| axis_kwargs = Dict{Symbol,Any}() | ||
| axis_kwargs[:xlabel] = isnothing(axis_config[:xlabel]) ? default_xlabel : axis_config[:xlabel] | ||
| axis_kwargs[:ylabel] = axis_config[:ylabel] | ||
| for key in (:xlimits, :ylimits, :xticks, :yticks, :xtickformat, :ytickformat, :xscale, :yscale) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| for key in (:xlimits, :ylimits, :xticks, :yticks, :xtickformat, :ytickformat, :xscale, :yscale) | |
| for key in | |
| (:xlimits, :ylimits, :xticks, :yticks, :xtickformat, :ytickformat, :xscale, :yscale) |
| var_names = first.(variables) | ||
| categorical_terms = var_names[var_types .== :CategoricalTerm] | ||
| continuous_terms = var_names[ERPExplorer.is_continuous_like.(var_types)] | ||
| mapping = Dict(:color => :none, :marker => :none, :linestyle => :none, :col => :none, :row => :none) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| mapping = Dict(:color => :none, :marker => :none, :linestyle => :none, :col => :none, :row => :none) | |
| mapping = Dict( | |
| :color => :none, | |
| :marker => :none, | |
| :linestyle => :none, | |
| :col => :none, | |
| :row => :none, | |
| ) |
| formula_values, | ||
| categorical_terms, | ||
| continuous_terms, | ||
| merge(mapping, Dict(:marker => :fruit, :linestyle => :animal, :row => :fruit, :col => :animal)); |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| merge(mapping, Dict(:marker => :fruit, :linestyle => :animal, :row => :fruit, :col => :animal)); | |
| merge( | |
| mapping, | |
| Dict(:marker => :fruit, :linestyle => :animal, :row => :fruit, :col => :animal), | |
| ); |

explore(...)gained new keyword options:axis_options- labels, limits, ticks, tickformat, scale for x and yauto_reset_view- recenteringfit_window- fitting window to viewportlinestyleandrow/colfacet.