-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: fix#124
Are you sure you want to change the base?
hanningfix #128
Conversation
behinger
commented
Dec 13, 2024
- 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
docs/literate/HowTo/newComponent.jl
Outdated
@@ -62,7 +67,8 @@ function basis_shiftduration(evts, maxlength) | |||
end | |||
|
|||
# ## Simulate data with the new component type | |||
erp = UnfoldSim.simulate( | |||
erp = UnfoldSim.simulate_component( | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
docs/literate/HowTo/sequence.jl
Outdated
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
# 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), | |||
), | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
event_order_function = shuffle, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
axislegend(ax) | ||
f | ||
|
||
# Voila - the inter-onset intervals are `20` samples longer for condition `B`, exactly as specified.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
# 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
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...) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
) = size(generate_events(design), 1) | |
) = size(generate_events(design), 1) |
src/onset.jl
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
@test argmin(n170(; sfreq)) == 0.17 * sfreq | ||
@test argmax(p300(; sfreq)) == 0.3 * sfreq | ||
@test argmin(n400(; sfreq)) == 0.4 * sfreq | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
end | |
end |