Skip to content

BUG: check_coupling_params fails because of hard-coded sampling frequency #74

@ctrltz

Description

@ctrltz

Trying to simulate 60 Hz oscillations with coupling, but the sampling frequency is set to 100 Hz in check_coupling_params:

sim.set_coupling(
    ("v1-lh", "v1-rh"), method=ppc_shifted_copy_with_noise,
    phase_lag=0, coh=1, fmin=59, fmax=61
)

As a result, filtering fails because target frequency is higher than the Nyquist one, error message:

ValueError: Digital filter critical frequencies must be 0 < Wn < 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions