From 2e48ecbf6830ea00aa29ca3d8ca012c332fd04ac Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 14 Jul 2017 10:17:16 +0200 Subject: [PATCH] idea on onelab.py vectorization --- contrib/onelab/python/onelab.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/onelab/python/onelab.py b/contrib/onelab/python/onelab.py index ba76aacb55..3cf45b2c7b 100755 --- a/contrib/onelab/python/onelab.py +++ b/contrib/onelab/python/onelab.py @@ -53,6 +53,14 @@ def path(dirname, inp): # ONELAB models usually directly use "value=val" assignments when creating # parameters; brutally changing value to a list would mean changing all the # existing models. +# +# 14/07/2017: last idea would be: +# 1) add a member ('values', ('list', 'float'), []) with an empty initial value +# 2) add a test +# - in tochar to send value if values is empty, and values otherwise +# - in fromchar to fill value if the received string when parsing 'value' +# is of size 1, or fill values if the received string when parsing 'value' +# AND skip the other member parsing class _parameter() : _membersbase = [ -- GitLab