Commit a307a180 authored by Adrian Nievergelt's avatar Adrian Nievergelt
Browse files

check for mdoc entries without subframes

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