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

plot_designmatrix fails for small designmatrices #274

Open
behinger opened this issue Nov 19, 2024 · 0 comments
Open

plot_designmatrix fails for small designmatrices #274

behinger opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@behinger
Copy link
Member

Describe the bug
plot_designmatrix fails for small designmatrices

Code To Reproduce

using Unfold,UnfoldMakie,CairoMakie
data, evts = UnfoldSim.predef_eeg(sfreq = 5, n_repeats = 1)

basisfunction = firbasis(τ = (-1, 2), sfreq = 5, scale_duration = true)

f = @formula 0 ~ 1 + condition

bf_vec = [Any => (f, basisfunction)]
m = fit(UnfoldModel, bf_vec, evts, data; eventfields = [:latency, :duration]);

heatmap(Matrix(modelmatrix(m))')
plot_designmatrix(designmatrix(m))

Expected behavior
the plots show up.

Versions:

  • Julia: 1.11.1
  • UnfoldMakie: 0.5.9
@vladdez vladdez added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants