Skip to content

hanningfix #128

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

Open
wants to merge 2 commits into
base: fix#124
Choose a base branch
from
Open

hanningfix #128

wants to merge 2 commits into from

Conversation

behinger
Copy link
Member

  • FormulaOnsets
  • initial sequence tryout
  • fix bug in predef_eeg
  • fix \beta missing
  • forgot the end
  • half way through to success for sequence designs or something
  • everythinig except sequencelength seems to be working now
  • added string sequence tests
  • small doc update
  • added jitter to the '_' trial divisor
  • generalized LinearModelComponent to arbitrary functions instead of vectors
  • bugfix with endless loop due to multiple dispatch
  • function component for multi-subject
  • forgot to define offset in LinearModelFunction
  • Improve documentation especially quickstart, home and power analysis
  • adapted the order of reference overviews and adapted titles
  • Updated quickstart page
  • minor changes
  • fixed docstrings for predef_eeg and predef_2x2
  • added draft of design types reference page
  • Update quickstart.jl
  • Add UnfoldSim logo to the documentation
  • Finished experimental design reference page
  • Replace logo file
  • Update logo file
  • Delete docs/src/assets/logo.svg
  • Add logo as png file
  • Added intro paragraph for Simulate ERP tutorial
  • Improved docstrings for single- and multi-subject design
  • Fixed simulate docstring
  • Added cross references in docstrings
  • Added intro sentences, matched titles and sidebar, reordered pages and added collapsible setup blocks
  • Update noise.jl
  • Update src/noise.jl
  • Update src/noise.jl
  • Update src/noise.jl
  • add empty line for formatting reasons
  • Update docs/literate/reference/noisetypes.jl
  • Update docs/literate/reference/overview.jl
  • Update docs/literate/reference/overview.jl
  • Update docs/literate/reference/noisetypes.jl
  • added docstring
  • renamed to have the formula at the end
  • merge fix, double definition of function
  • component function test + docstring
  • better docs
  • added unittests
  • fixed small wording
  • fix tutorial with v0.3 renaming of simulate to simulate_component
  • fix newComponent tutorial
  • fix sequence design rng
  • fix sequence test
  • fix rng docs
  • fix Change Simulation struct field "components" from Type Dict to NamedTuple Type. #124, explicitly cast the dict
  • not sure where this error came in...
  • hanning upgrade
  • checking stuff

@@ -62,7 +67,8 @@ function basis_shiftduration(evts, maxlength)
end

# ## Simulate data with the new component type
erp = UnfoldSim.simulate(
erp = UnfoldSim.simulate_component(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

xlims!(0, 500)
current_figure()

# As visible, the `R` response always follows the `S` response. Due to the "`_`" we have large breaks between the individual sequences.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
# As visible, the `R` response always follows the `S` response. Due to the "`_`" we have large breaks between the individual sequences.
# As visible, the `R` response always follows the `S` response. Due to the "`_`" we have large breaks between the individual sequences.

@@ -40,7 +40,9 @@ design_single_shuffled = SingleSubjectDesign(;
:stimulus_type => ["natural", "artificial"],
:contrast_level => range(0, 1, length = 3),
),

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

event_order_function = shuffle,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

axislegend(ax)
f

# Voila - the inter-onset intervals are `20` samples longer for condition `B`, exactly as specified.`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
# Voila - the inter-onset intervals are `20` samples longer for condition `B`, exactly as specified.`
# Voila - the inter-onset intervals are `20` samples longer for condition `B`, exactly as specified.`

src/design.jl Outdated
SequenceDesign(design, sequence) =
SequenceDesign(design = design, sequence = sequence)

generate_events(rng,design::SequenceDesign{MultiSubjectDesign}) = error("not yet implemented")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
generate_events(rng,design::SequenceDesign{MultiSubjectDesign}) = error("not yet implemented")
generate_events(rng, design::SequenceDesign{MultiSubjectDesign}) =
error("not yet implemented")

src/design.jl Outdated
function UnfoldSim.generate_events(rng::AbstractRNG, design::RepeatDesign)
df = map(x -> generate_events(rng, design.design), 1:design.repeat) |> x -> vcat(x...)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

src/design.jl Outdated
# No way to find out what size it is without actually generating first...
Base.size(
design::Union{<:SequenceDesign,<:SubselectDesign,<:RepeatDesign{<:SequenceDesign}},
) = size(generate_events(design), 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
) = size(generate_events(design), 1)
) = size(generate_events(design), 1)

src/onset.jl Outdated
Comment on lines 210 to 211


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

@test argmin(n170(; sfreq)) == 0.17 * sfreq
@test argmax(p300(; sfreq)) == 0.3 * sfreq
@test argmin(n400(; sfreq)) == 0.4 * sfreq
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
end
end

@behinger behinger changed the base branch from main to v4.0 December 17, 2024 09:38
@behinger behinger changed the base branch from v4.0 to trf December 17, 2024 09:38
@behinger behinger changed the base branch from trf to v4.0 December 17, 2024 09:38
@behinger behinger changed the base branch from v4.0 to fix#124 December 17, 2024 09:39
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

Successfully merging this pull request may close these issues.

Change Simulation struct field "components" from Type Dict to NamedTuple Type.
1 participant