9f7e1e041a63140ddda434307cfc2d951bea4c83,neurodsp/sim/aperiodic.py,,sim_powerlaw,#Any#Any#Any#Any#,247
Before Change
n_samples = int(n_seconds * fs) + filt_len + 1
else:
n_samples = int(n_seconds * fs)
sig = _create_powerlaw(n_samples, fs, exponent)
if f_range is not None:
After Change
// Compute the number of samples for the simulated time series
n_samples = compute_nsamples(n_seconds, fs)
// Get the number of samples to simulate for the signal
// If signal is to be filtered, with FIR, add extra to compensate for edges
if f_range and filter_kwargs.get("filter_type", None) != "iir":
In pattern: SUPERPATTERN
Frequency: 9
Non-data size: 3
Instances Project Name: neurodsp-tools/neurodsp
Commit Name: 9f7e1e041a63140ddda434307cfc2d951bea4c83
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/aperiodic.py
Class Name:
Method Name: sim_powerlaw
Project Name: neurodsp-tools/neurodsp
Commit Name: 9f7e1e041a63140ddda434307cfc2d951bea4c83
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/cycles.py
Class Name:
Method Name: sim_asine_cycle
Project Name: neurodsp-tools/neurodsp
Commit Name: 5f61b4069d50ceaad9c753578633786d791b6b2c
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/periodic.py
Class Name:
Method Name: sim_oscillation
Project Name: neurodsp-tools/neurodsp
Commit Name: c4a565efb2b16987293c2356f55e93626e1e1b74
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/cycles.py
Class Name:
Method Name: sim_gaussian_cycle
Project Name: neurodsp-tools/neurodsp
Commit Name: c4a565efb2b16987293c2356f55e93626e1e1b74
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/aperiodic.py
Class Name:
Method Name: sim_poisson_pop
Project Name: neurodsp-tools/neurodsp
Commit Name: c4a565efb2b16987293c2356f55e93626e1e1b74
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/periodic.py
Class Name:
Method Name: make_bursts
Project Name: neurodsp-tools/neurodsp
Commit Name: 9f7e1e041a63140ddda434307cfc2d951bea4c83
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/sim/cycles.py
Class Name:
Method Name: create_cycle_time
Project Name: neurodsp-tools/neurodsp
Commit Name: 9f7e1e041a63140ddda434307cfc2d951bea4c83
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/tests/tutils.py
Class Name:
Method Name: check_sim_output
Project Name: neurodsp-tools/neurodsp
Commit Name: c4a565efb2b16987293c2356f55e93626e1e1b74
Time: 2021-02-22
Author: tdonoghue.research@gmail.com
File Name: neurodsp/utils/data.py
Class Name:
Method Name: create_times