I would like to have a list of points (x,y) as a parameter on my class so that I can construct a numpy array from it of the proper share whenever it is modified. I have two questions
- This doesn’t appear to be the correct approach
class T(param.Parameterized): vertices = param.List(item_type=param.XYCoordinates) @param.depends("vertices", watch=True) def _update_points(self): self.coords = np.array(self.vertices).T
and allows me to append (2,2,2) to the list
- The @param.depends decorator never gets called when I append or extend the list but does when I replace it all together. Is there a way to trigger on adding a subitem to the list?