Changed the step functions module so that both StepFunction and RampedSteps are independent from one another are are much faster (>3 times) compared to previous use of np.piecewise.
Also fixed up formatted and tests to pass CI and be consistent with new steps module. All docs are also done and build on the gh-pages branch.
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
[ ] New feature (non-breaking change which adds functionality)
[x] Optimization (back-end change that improves speed/readability/etc.)
[x] Bug fix (non-breaking change which fixes an issue)
Key checklist:
[x] No style issues: $ nox -s linter [-- format]
[x] Code is free of misspellings: $ nox -s codespell [-- write]
[x] All tests pass: $ nox -s tests
[x] Badges are updated: $ nox -s badges
The optional -- format and -- write arguments (see above) attempt to correct formatting issues prior to running the linter, and spelling mistakes prior to running the spellcheck, respectively. You can also run all of the above checks using $ nox -s pre-commit instead of running them individually.
Further checks:
[x] The documentation builds: $ nox -s docs.
[x] Code is commented, particularly in hard-to-understand areas.
[x] Tests are added that prove fix is effective or that feature works.
Description
Changed the step functions module so that both StepFunction and RampedSteps are independent from one another are are much faster (>3 times) compared to previous use of np.piecewise.
Also fixed up formatted and tests to pass CI and be consistent with new steps module. All docs are also done and build on the gh-pages branch.
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ nox -s linter [-- format]
$ nox -s codespell [-- write]
$ nox -s tests
$ nox -s badges
The optional
-- format
and-- write
arguments (see above) attempt to correct formatting issues prior to running the linter, and spelling mistakes prior to running the spellcheck, respectively. You can also run all of the above checks using$ nox -s pre-commit
instead of running them individually.Further checks:
$ nox -s docs
.