346916750010b8a7750c96c894bcb07d82d383f9,dipy/align/streamwarp.py,StreamlineRigidRegistration,optimize,#StreamlineRigidRegistration#Any#Any#,290
Before Change
print("warn", warnflag)
print("msg", dictionary["task"])
print("static_shift", static_shift)
print("moving_shift", moving_shift)
opt_mat = matrix44(xopt)
static_mat = matrix44([static_shift[0], static_shift[1],
After Change
moving_centered, moving_shift = center_streamlines(moving)
static_centered_pts, st_idx = unlist_streamlines(static_centered)
moving_centered_pts, mv_idx = unlist_streamlines(moving_centered)
block_size = st_idx[0]
if self.algorithm == "Powell":
optimum = fmin_powell(self.similarity,
self.initial,
(static_centered_pts, moving_centered_pts, block_size),
xtol=self.xtol,
ftol=self.ftol,
maxiter=self.maxiter,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: nipy/dipy
Commit Name: 346916750010b8a7750c96c894bcb07d82d383f9
Time: 2014-04-13
Author: garyfallidis@gmail.com
File Name: dipy/align/streamwarp.py
Class Name: StreamlineRigidRegistration
Method Name: optimize
Project Name: HyperGAN/HyperGAN
Commit Name: 206c271f38dcbbc88b63be4abcd32887811e1619
Time: 2018-06-26
Author: martyn@255bits.com
File Name: hypergan/trainers/gang_trainer.py
Class Name: GangTrainer
Method Name: nash_mixture_from_payoff
Project Name: shibing624/pycorrector
Commit Name: b3349272475868db067a4e01795e19d3b9e57c63
Time: 2018-03-07
Author: xuming624@qq.com
File Name: pycorrector/cn_spell.py
Class Name:
Method Name: correct
Project Name: openeventdata/mordecai
Commit Name: 834340875d6baae452eaf527443025c356a621d2
Time: 2017-11-19
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparse
Method Name: geoparse