Mercurial > stress-tester
changeset 1262:4682303ee2ed
flow - fixed NPE in SequenceConverter
author | Devel 1 |
---|---|
date | Thu, 02 Jul 2020 13:26:17 +0200 |
parents | 7491572234e7 |
children | 785eedda2370 |
files | stress-tester/src/main/resources/flow_analyzer.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/resources/flow_analyzer.py Thu Jul 02 13:15:11 2020 +0200 +++ b/stress-tester/src/main/resources/flow_analyzer.py Thu Jul 02 13:26:17 2020 +0200 @@ -692,8 +692,11 @@ ] if args.c: + ignoredUrls = args.c for cleanRule in args.c: cleanRules.append(cleanRule) + else: + ignoredUrls = [] analyzer = FlowAnalyzer() analyzer.get_files_list(pathString=args.input) @@ -728,13 +731,13 @@ stats['unfoldedCount'] = num_unfolded unfolded = unfolded[:args.maxSeq] out = { - 'ignoredUrls': args.c, + 'ignoredUrls': ignoredUrls, 'sequences': unfolded } else: seqs_prob = seqs_prob[:args.maxSeq] out = { - 'ignoredUrls': args.c, + 'ignoredUrls': ignoredUrls, 'sequences': [{'sequence': seq, 'prob': prob} for seq, prob in seqs_prob] }