Skip to content

[BUG] - Fix sim_bursty_oscillation for passing in burst_def array directly#349

Merged
TomDonoghue merged 3 commits into
mainfrom
burst_def2
Feb 11, 2025
Merged

[BUG] - Fix sim_bursty_oscillation for passing in burst_def array directly#349
TomDonoghue merged 3 commits into
mainfrom
burst_def2

Conversation

@TomDonoghue
Copy link
Copy Markdown
Member

@TomDonoghue TomDonoghue commented Feb 11, 2025

Follow up from #334, implementing new fix discussed there

In the original PR @ryanhammonds pointed out there is a bug with sim_bursty_oscillation no longer taking in a pre-defined burst array properly. There are some quirks to keeping the ordering (see #334), so this PR adds a new fix

Updates:

  • add an explicit test of burst_def as an array input
  • update the type-checking of burst_def to not fail with an array input
  • update examples to more properly use a consistent API for passing in burst params

@neurodsp-tools neurodsp-tools deleted a comment from codecov Bot Feb 11, 2025
@TomDonoghue TomDonoghue mentioned this pull request Feb 11, 2025
@TomDonoghue TomDonoghue changed the title [WIP] - add test of passing in burst def array [BUG] - Fix sim_bursty_oscillation for passing in burst_def array directly Feb 11, 2025
@TomDonoghue TomDonoghue merged commit 1af715c into main Feb 11, 2025
@TomDonoghue TomDonoghue deleted the burst_def2 branch February 11, 2025 03:51
@neurodsp-tools neurodsp-tools deleted a comment from codecov Bot Feb 11, 2025
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.

2 participants