08233b4ed9bdc1fa2016de0d0e9856c00b28c282,pynets/fmri/clustools.py,,nil_parcellate,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,358

Before Change


                print("Warning: NaN\"s detected in confound regressor file. Filling these with mean values, but the "
                      "regressor file should be checked manually.")
                confounds_nonan = confounds.apply(lambda x: x.fillna(x.mean()), axis=0)
                conf_corr = dir_path + "/confounds_mean_corrected_" + str(random.randint(1, 1000)) + ".tsv"
                confounds_nonan.to_csv(conf_corr, sep="\t")
                clust_est.fit(func_img, confounds=conf_corr)
            else:

After Change


            if confounds.isnull().values.any():
                import uuid
                from time import strftime
                run_uuid = "%s_%s" % (strftime("%Y%m%d-%H%M%S"), uuid.uuid4())
                print("Warning: NaN\"s detected in confound regressor file. Filling these with mean values, but the "
                      "regressor file should be checked manually.")
                confounds_nonan = confounds.apply(lambda x: x.fillna(x.mean()), axis=0)
                conf_corr = "/tmp/confounds_mean_corrected_" + str(run_uuid) + ".tsv"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dPys/PyNets
Commit Name: 08233b4ed9bdc1fa2016de0d0e9856c00b28c282
Time: 2019-10-02
Author: dpisner@utexas.edu
File Name: pynets/fmri/clustools.py
Class Name:
Method Name: nil_parcellate


Project Name: lcswillems/torch-rl
Commit Name: 02e22bd58feef2a816699ccf6cc9f115c49d85ae
Time: 2018-04-23
Author: lcswillems@gmail.com
File Name: scripts/train.py
Class Name:
Method Name:


Project Name: dPys/PyNets
Commit Name: 08233b4ed9bdc1fa2016de0d0e9856c00b28c282
Time: 2019-10-02
Author: dpisner@utexas.edu
File Name: pynets/fmri/estimation.py
Class Name:
Method Name: extract_ts_coords


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 02656f82a077cda05539a75ebd48d086c4233083
Time: 2020-12-20
Author: nehcuh@szu.edu.cn
File Name: QUANTAXIS/QAUtil/QADate.py
Class Name:
Method Name: QA_util_date_stamp