New mesh example with correct inputs + small fix

small fix: correct wrong numbering of request in json and csv
           output when -o is used ; correct example files

signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
EstherLerouzic
2018-11-16 10:38:36 +00:00
parent b78d3d8eda
commit 17f638e991
5 changed files with 110 additions and 6 deletions

View File

@@ -34,7 +34,6 @@ from copy import copy, deepcopy
from textwrap import dedent
from math import ceil
import time
from textwrap import dedent
#EQPT_LIBRARY_FILENAME = Path(__file__).parent / 'eqpt_config.json'
@@ -360,8 +359,9 @@ if __name__ == '__main__':
if args.output :
result = []
for p in propagatedpths:
result.append(Result_element(rqs[propagatedpths.index(p)],p))
# assumes that list of rqs and list of propgatedpths have same order
for i,p in enumerate(propagatedpths):
result.append(Result_element(rqs[i],p))
temp = path_result_json(result)
with open(args.output, 'w', encoding='utf-8') as f:
f.write(dumps(path_result_json(result), indent=2, ensure_ascii=False))