Commit 40bac497 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Allow setting of property array from value of different size.

parent ebc00aa1
......@@ -526,9 +526,16 @@ class PropertyMap(object):
if a is None:
if filt[0] is None:
a[:] = v
a[:] = v
except ValueError:
a[:] = v[:len(a)]
a[filt[0].a == (not filt[1])] = v
m = filt[0].a == (not filt[1])
a[m] = v
except ValueError:
a[m] = v[:len(m)][m]
fa = property(__get_set_f_array,
lambda self, v: self.__get_set_f_array(v, False),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment