Commit 05278e12 authored by Martin Schorb's avatar Martin Schorb
Browse files

mergefile: add reporting tileidx_offset

parent a1cccbb2
......@@ -397,7 +397,7 @@ def mergemap(mapitem,crop=False,black=False,blendmont=True):
if mapfile.find('.st')<0 and mapfile.find('.map')<0 and mapfile.find('.mrc')<0:
#not an mrc file
tileidx_offset = 0
print('Warning: ' + mapfile + ' is not an MRC file!' + '\n')
mergeheader = {}
mergeheader['stacksize'] = 1
......@@ -501,6 +501,7 @@ def mergemap(mapitem,crop=False,black=False,blendmont=True):
if (m['frames'] == [0,0]):
mapheader['stacksize'] = 0
tileidx_offset = 0
if os.path.exists(mdocname):
mdoclines = loadtext(mdocname)
pixelsize = float(mdoc_item(mdoclines,'ZValue = '+str(mapsection))['PixelSpacing'][0])/ 10000 # in um
......@@ -722,7 +723,7 @@ def mergemap(mapitem,crop=False,black=False,blendmont=True):
m['tilepx1'] = tilepx1
m['overlap'] = [overlapx,overlapy]
m['tileloc'] = tileloc
m['tileidx_offset'] = tileidx_offset
return m
......
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