Workflow Verification
Created by: jjenthought
Required by https://github.com/force-h2020/force-wfmanager/pull/194 as some of the error reporting things are now in verifier.py. Changes the VerifierError object to have a local & global error message, which can be the same. The global message should be something useful when looking at the workflow as a whole, and the local one useful when the object causing the error is selected/ being edited.
Merge request reports
Activity
Created by: codecov-io
Codecov Report
Merging #171 into master will decrease coverage by
0.12%
. The diff coverage is93.47%
.@@ Coverage Diff @@ ## master #171 +/- ## ========================================== - Coverage 93.05% 92.92% -0.13% ========================================== Files 42 42 Lines 993 1032 +39 Branches 73 83 +10 ========================================== + Hits 924 959 +35 - Misses 67 69 +2 - Partials 2 4 +2
Impacted Files Coverage Δ force_bdss/core_mco_driver.py 96.59% <100%> (ø)
force_bdss/core/verifier.py 90.56% <93.33%> (-0.48%)
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update c4408ec...496dcab. Read the comment docs.145 191 146 192 return errors 193 194 195 def multi_error_format(index_list): 196 """Takes a list of integers and returns a string where they are grouped 197 consecutively wherever possible. 198 For example an input of [0,1,2,4,5,7] returns the string '0-2, 4-5, 7' """ 199 index_list.sort() 200 # Single, consecutive or non-consecutive 201 if len(index_list) == 1: 202 return str(index_list[0]) 203 else: 204 repl = [] 205 206 for i, index_group in groupby(enumerate(index_list), lambda val: 188 "parameters {}".format(err_no_string), 189 global_error="An output parameter is undefined in {}" 190 " (Layer {})".format(factory.name, layer_number))) 145 191 146 192 return errors 193 194 195 def multi_error_format(index_list): 196 """Takes a list of integers and returns a string where they are grouped 197 consecutively wherever possible. 198 For example an input of [0,1,2,4,5,7] returns the string '0-2, 4-5, 7' """ 199 index_list.sort() 200 # Single, consecutive or non-consecutive 201 if len(index_list) == 1: 202 return str(index_list[0]) 203 else: