From 777e95b210f607ed446fe0e21d705a8727ce677f Mon Sep 17 00:00:00 2001 From: jvfe Date: Wed, 24 Jul 2024 13:39:57 -0300 Subject: [PATCH] refact: Add different probabilities for seps - Comma is the most common, followed by new lines and lastly, tabs and semicolons - Adds space after comma/semicolon to have more similar output to previous runs --- www/python/src/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/python/src/app.py b/www/python/src/app.py index 36658e2..93bac31 100644 --- a/www/python/src/app.py +++ b/www/python/src/app.py @@ -118,8 +118,9 @@ def select_random_process(processes): return genes def select_random_separator(): - separators = [',', '\t', '\n', ';'] - separator = random.choice(separators) + separators = [', ', '\t', '\n', '; '] + probs = [0.8, 0.1, 0.3, 0.1] + separator = random.choices(separators, probs)[0] return separator