5b62ac044be8353759b4ce159f507e5f2b985157,tests/test_track.py,,test_track_ensemble,#Any#Any#,112

Before Change


    temp_dir = tempfile.TemporaryDirectory()
    recon_path = temp_dir.name + "/model_file.npy"
    model, _ = track.reconstruction(conn_model, gtab, dwi_data, wm_in_dwi)
    np.save(recon_path, model)

    streamlines = track.track_ensemble(target_samples, atlas_data_wm_gm_int,
                                       labels_im_file,
                   recon_path, sphere, directget, curv_thr_list, step_list,

After Change


    recon_path = temp_dir.name + "/model_file.hdf5"
    model, _ = track.reconstruction(conn_model, gtab, dwi_data, wm_in_dwi)

    with h5py.File(recon_path, "w") as hf:
        hf.create_dataset("reconstruction",
                          data=model.astype("float32"))
    hf.close()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dPys/PyNets
Commit Name: 5b62ac044be8353759b4ce159f507e5f2b985157
Time: 2020-08-21
Author: dpisner@utexas.edu
File Name: tests/test_track.py
Class Name:
Method Name: test_track_ensemble


Project Name: calico/basenji
Commit Name: d6cfffd01a2a3129739c6e76f9d966287b20b7c5
Time: 2019-04-12
Author: drk@calicolabs.com
File Name: bin/basenji_predict.py
Class Name:
Method Name: main


Project Name: facebookresearch/ParlAI
Commit Name: 10ef3cb6a711c52e2148cbf2635741fcaf8918d4
Time: 2017-11-01
Author: kshuster@fb.com
File Name: parlai/core/image_featurizers.py
Class Name: ImageLoader
Method Name: save


Project Name: dPys/PyNets
Commit Name: 5b62ac044be8353759b4ce159f507e5f2b985157
Time: 2020-08-21
Author: dpisner@utexas.edu
File Name: tests/test_track.py
Class Name:
Method Name: test_track_ensemble_particle