Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nieverge
scripts
Commits
a307a180
Commit
a307a180
authored
Jul 17, 2019
by
Adrian Nievergelt
Browse files
check for mdoc entries without subframes
parent
cc61e72e
Changes
1
Show whitespace changes
Inline
Side-by-side
processing/mc2FromMDOC.py
View file @
a307a180
...
...
@@ -68,7 +68,11 @@ for section in parser.sections():
for
option
in
parser
.
options
(
section
):
tempDict
[
option
]
=
parser
.
get
(
section
,
option
)
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
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment