Dear PyTom developer,
I noticed that there is a bug in the subPixelMaxSpline function in gpuStructures.py when you are using binned subtomograms.
For example, if you have specified --binning 2 when using GLocalJob.py, the shift found by subPixelMaxSpline function is for the binned subtomogram. To get the shift for unbinned subtomogram, we need to multiply this shift with the binning factor before return. I propose the following modification,
#get the ubinned shift
peak_shift = [ip*self.binning for ip in peak_shift]
return peak_value, peak_shift
Dear PyTom developer, I noticed that there is a bug in the
subPixelMaxSpline
function ingpuStructures.py
when you are using binned subtomograms. For example, if you have specified--binning 2
when usingGLocalJob.py
, the shift found bysubPixelMaxSpline
function is for the binned subtomogram. To get the shift for unbinned subtomogram, we need to multiply this shift with the binning factor before return. I propose the following modification,Best Regards, Zhenwei