I was thinking something like:
numpyVersion = float(numpy.version.version[:3])
if numpyVersion > 1.7:
peaktreelist = Parallel(n_jobs=params['nproc'])(delayed(runFindPeaks)(params,
maplist,maptype,pikfile,thresh,pixdiam,count,olapmult,maxpeaks,maxsizemult,
msg,bin,peaktype,pixrad,imgdict) for count in range(0,len(maplist)))
else:
## backup for AttributeError: 'memmap' object has no attribute 'offset', bug #3322
peaktreelist = []
for count in range(0,len(maplist)):
peaktree = runFindPeaks(params,maplist,maptype,pikfile,thresh,pixdiam,count,olapmult,
maxpeaks,maxsizemult,msg,bin,peaktype,pixrad,imgdict)
peaktreelist.append(peaktree)
Because as of right now myami-3.2 does not work on CentOS 6 out of the box.