08be819a5fd8edd74a59dcc363c9e7694ca009d2,neurodsp/utils/outliers.py,,remove_nans,#Any#,8
Before Change
sig_nans = np.isnan(sig)
sig_removed = sig[np.where(~np.isnan(sig))]
return sig_removed, sig_nans
After Change
if sig.ndim == 1:
sig_removed = sig[np.where(~sig_nans)]
elif sig.ndim == 2:
sig_removed = sig[~sig_nans].reshape(sig_nans.shape[0], sum(~sig_nans[0, :]))
sig_nans = sig_nans[0, :]
else:
raise ValueError("Only 1d or 2d arrays supported.")
return sig_removed, sig_nans
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: neurodsp-tools/neurodsp
Commit Name: 08be819a5fd8edd74a59dcc363c9e7694ca009d2
Time: 2019-09-01
Author: tdonoghue@ucsd.edu
File Name: neurodsp/utils/outliers.py
Class Name:
Method Name: remove_nans
Project Name: J535D165/recordlinkage
Commit Name: f0abbde5a393b8781919a2c33474757c07cfee8f
Time: 2016-01-02
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name:
Method Name: _sortedneighbourhood
Project Name: neurodsp-tools/neurodsp
Commit Name: 10102bb8b5a76b029abe7b70ca65c993bf50d02d
Time: 2020-07-29
Author: tdonoghue@ucsd.edu
File Name: neurodsp/aperiodic/dfa.py
Class Name:
Method Name: compute_fluctuations