Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CNMS
CNMS_Computing_Resources
Commits
63369ec8
Commit
63369ec8
authored
Jun 05, 2017
by
Doak, Peter W
Browse files
this should fix a difficulty with parsing vasp forces
parent
ae800389
Changes
1
Hide whitespace changes
Inline
Side-by-side
utility/watch_server/watch_server.py
View file @
63369ec8
...
...
@@ -117,6 +117,10 @@ def read_output_influx(log):
for
aindex
,
label
in
then_do
:
the_value
=
(
line
.
split
())[
aindex
-
1
]
the_value
=
re
.
sub
(
r
':'
,
r
''
,
the_value
)
#case where vasp runs force into its error value
fmatch
=
re
.
search
(
r
'([-\dEe\.]+)\[.*'
,
the_value
)
if
fmatch
:
the_value
=
fmatch
.
group
(
1
)
print
"{} {}"
.
format
(
label
,
the_value
)
influx_point
=
(
"{},user_name={},code={},"
"job_name={},host={} value={} {}
\n
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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