08be819a5fd8edd74a59dcc363c9e7694ca009d2,neurodsp/utils/outliers.py,,remove_nans,#,8

Before Change


    

    sig_nans = np.isnan(sig)
    sig_removed = sig[np.where(~np.isnan(sig))]

    return sig_removed, sig_nans

After Change


        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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: suavecode/SUAVE
Commit Name: 5d353927b3e5b562392bb7cd2f7f056fa6f3654a
Time: 2019-02-05
Author: ezmac12@gmail.com
File Name: trunk/SUAVE/Components/Energy/Distributors/Electronic_Speed_Controller.py
Class Name: Electronic_Speed_Controller
Method Name: currentin


Project Name: suavecode/SUAVE
Commit Name: c0893166ea64f1d009bf60854582344d215e1c3f
Time: 2018-12-07
Author: ezmac12@gmail.com
File Name: trunk/SUAVE/Components/Energy/Networks/Battery_Ducted_Fan.py
Class Name: Battery_Ducted_Fan
Method Name: evaluate_thrust