Mercurial > repos > devteam > column_maker
diff column_maker.py @ 5:c6fdc1118036 draft
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 0cb87d8f454f205af021d653d7f7d5a7c14c7718"
author | devteam |
---|---|
date | Wed, 15 Jul 2020 14:38:05 +0000 |
parents | 3335c0d583d8 |
children | 0aeda7a81b46 |
line wrap: on
line diff
--- a/column_maker.py Thu Jun 04 09:03:25 2020 +0000 +++ b/column_maker.py Wed Jul 15 14:38:05 2020 +0000 @@ -46,7 +46,7 @@ expr = expr.replace(key, value) operators = 'is|not|or|and' -builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|bool|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' +builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|bool|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|log10|exp|sqrt|ceil|floor' string_and_list_methods = [name for name in dir('') + dir([]) if not name.startswith('_')] whitelist = r"^([c0-9\+\-\*\/\(\)\.\'\"><=,:! ]|%s|%s|%s)*$" % (operators, builtin_and_math_functions, '|'.join(string_and_list_methods)) if not re.compile(whitelist).match(expr): @@ -84,6 +84,7 @@ exp, floor, log, + log10, sqrt ) from numpy import format_float_positional