Hi Troels,
The addition of a list_of_lists argument is not necessary. This is
handled 100% by the py_type argument. Note the lines:
elif py_type == 'str_list_of_lists':
lib.arg_check.is_str_list(value, desc_short, size=dim,
can_be_none=can_be_none, can_be_empty=can_be_empty,
list_of_lists=True)
You can completely avoid the list_of_lists argument by changing to:
+ elif py_type == 'list_val_or_list_of_list_val':
+ lib.arg_check.is_list_val_or_list_of_list_val(value,
desc_short, size=dim, can_be_none=can_be_none,
can_be_empty=can_be_empty, list_of_lists=True)
Regards,
Edward
On 8 May 2014 14:40, <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Thu May 8 14:40:20 2014
New Revision: 23081
URL: http://svn.gna.org/viewcvs/relax?rev=23081&view=rev
Log:
Added list_of_lists to uf_objects.
task #7791: (https://gna.org/task/index.php?7791 ) the dx.map should accept
a list of list with values for points.
Modified:
trunk/prompt/uf_objects.py
Modified: trunk/prompt/uf_objects.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/prompt/uf_objects.py?rev=23081&r1=23080&r2=23081&view=diff
==============================================================================
--- trunk/prompt/uf_objects.py (original)
+++ trunk/prompt/uf_objects.py Thu May 8 14:40:20 2014
@@ -164,6 +164,7 @@
can_be_none = arg['can_be_none']
can_be_empty = arg['can_be_empty']
none_elements = arg['none_elements']
+ list_of_lists = arg['list_of_lists']
# Check if the correct Python object type has been supplied.
if py_type == 'bool':
@@ -186,6 +187,8 @@
lib.arg_check.is_int_or_int_list(value, desc_short,
size=dim, can_be_none=can_be_none, can_be_empty=can_be_empty,
none_elements=none_elements)
elif py_type == 'list':
lib.arg_check.is_list(value, desc_short, size=dim,
can_be_none=can_be_none, can_be_empty=can_be_empty)
+ elif py_type == 'list_val_or_list_of_list_val':
+ lib.arg_check.is_list_val_or_list_of_list_val(value,
desc_short, size=dim, can_be_none=can_be_none, can_be_empty=can_be_empty,
list_of_lists=list_of_lists)
elif py_type == 'none':
lib.arg_check.is_none(value, desc_short)
elif py_type == 'num':
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
relax-commits@xxxxxxx
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits