Skip to content

Commit

Permalink
added changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush-Devs committed Aug 24, 2024
1 parent 322b805 commit 07f63a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ authors:
- given-names: Nabil
family-names: Alibou
affiliation: 'Biotrial, Neuroscience Department, Rennes, France'
- given-names: Ayush
family-names: Agarwal
affiliation: 'Techno India University, India'
type: software
repository-code: 'https://github.com/sappelhoff/pyprep'
license: MIT
Expand Down
1 change: 1 addition & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Version 0.5.0 (Unreleased)
Changelog
~~~~~~~~~
- :meth:`~pyprep.NoisyChannels.find_bad_by_nan_flat` now accepts a ``flat_threshold`` argument, by `Nabil Alibou`_ (:gh:`144`)
- changed _mad function in utils.py to use median_abs_deviation from the sciPy module, by `Ayush Agarwal`_ (:gh:`153`).

Bug
~~~
Expand Down
1 change: 1 addition & 0 deletions pyprep/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ def _mad(x, axis=None):
if x.ndim > 2:
e = "Only 1D and 2D arrays are supported (input has {0} dimensions)"
raise ValueError(e.format(x.ndim))

# Calculate the median absolute deviation from the median
mad = median_abs_deviation(x, axis=axis)
return mad
Expand Down

0 comments on commit 07f63a8

Please sign in to comment.