Commit a307a180 authored by Adrian Nievergelt's avatar Adrian Nievergelt

check for mdoc entries without subframes

parent cc61e72e
......@@ -68,7 +68,11 @@ for section in parser.sections():
for option in parser.options(section):
tempDict[option] = parser.get(section, option)
tempDict['filename'] = re.search("\\\\([\w.-]+)$", tempDict['subframepath']).group(1)
try:
tempDict['filename'] = re.search("\\\\([\w.-]+)$", tempDict['subframepath']).group(1)
except:
print("Section \"%s\" has no subframes, skipping." % (section))
continue
for imageParam in ['countsperelectron', 'defocus', 'exposuredose', 'exposuretime', 'intensity', 'pixelspacing', 'priorrecorddose', 'rotationangle', 'stagez', 'targetdefocus', 'tiltangle']:
try:
tempDict[imageParam] = float(tempDict[imageParam])
......
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