Commit 7ba3ce3b authored by Martin Schorb's avatar Martin Schorb
Browse files

bugfix: mergemap single image from mrc stack tiles

parent 8efe4051
......@@ -538,6 +538,7 @@ def mergemap(mapitem,crop=False,black=False,blendmont=True):
if (m['frames'] == [0,0]):
mapheader['stacksize'] = 0
tileidx_offset = 0
tilepos = [0,0]
if os.path.exists(mdocname):
mdoclines = loadtext(mdocname)
pixelsize = float(mdoc_item(mdoclines,'ZValue = '+str(mapsection))['PixelSpacing'][0])/ 10000 # in um
......@@ -613,7 +614,7 @@ def mergemap(mapitem,crop=False,black=False,blendmont=True):
if mapheader['stacksize'] < 2:
print('Single image found. No merging needed.')
tilepx = '0'
tilepx=numpy.array([[tilepx,tilepx,tilepx],[tilepx,tilepx,tilepx]])
tilepx=numpy.array([[tilepx,tilepx,mapsection],[tilepx,tilepx,mapsection]])
tilepx1=tilepx
#os.system(callcmd)
merge_mrc = mf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment