fooof-tools / fooof

Parameterizing neural power spectra into periodic & aperiodic components.
https://fooof-tools.github.io/
Apache License 2.0
358 stars 97 forks source link

[MNT] - Update parameter Stepper object #295

Closed TomDonoghue closed 1 year ago

TomDonoghue commented 1 year ago

This tweaks the checks on the Stepper object to allow for using the Stepper object to step along decreasing parameter values.

For example, this would have previously raised an error, but now works: exp_stepper = Stepper(2.5, 0.5, -0.25)