1
1
#!/usr/bin/env python
2
2
# Copyright (c) atomate Development Team.
3
3
4
- from __future__ import division , print_function , unicode_literals
5
-
6
4
import argparse
7
5
import ast
8
6
import os
@@ -63,7 +61,7 @@ def _get_wf(args, structure):
63
61
presets_dir , ".." , "base" , "library" , spec_path
64
62
)
65
63
else :
66
- raise ValueError ("Unknown library: {}" . format ( args .library ) )
64
+ raise ValueError (f "Unknown library: { args .library } " )
67
65
d = loadfn (spec_path )
68
66
return get_wf_from_spec_dict (structure , d , args .common_param_updates )
69
67
@@ -130,7 +128,7 @@ def submit_test_suite(args):
130
128
wfs .append (wf_func (* custom_args [name ]))
131
129
else :
132
130
wfs .append (wf_func (structs [0 ]))
133
- wfs = [add_tags (wf , "test set {}" . format ( dt ) ) for wf in wfs ]
131
+ wfs = [add_tags (wf , f "test set { dt } " ) for wf in wfs ]
134
132
for wf in wfs :
135
133
add_to_lpad (wf , write_namefile = False )
136
134
@@ -145,11 +143,11 @@ def verify_test_suite(args):
145
143
]
146
144
rep_dict = {k ["_id" ]: k ["count" ] for k in lpad .fireworks .aggregate (pipeline )}
147
145
dt = "" .join (tag .split ()[2 :])
148
- print ("Test set submitted at {}" . format ( dt ) )
146
+ print (f "Test set submitted at { dt } " )
149
147
if args .report :
150
148
print (" Test fw state summary:" )
151
149
for state , count in rep_dict .items ():
152
- print (" -{}: {}" . format ( state , count ) )
150
+ print (f " -{ state } : { count } " )
153
151
count = sum (rep_dict .values ())
154
152
if rep_dict .get ("COMPLETED" , None ) == count :
155
153
print (" All test workflows successfully completed" )
0 commit comments