Skip to content

Commit

Permalink
Merge 74fab17 into 714ad85
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrennd committed May 21, 2021
2 parents 714ad85 + 74fab17 commit 4ea32ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GPy/plotting/matplot_dep/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,13 @@ def __init__(self, vals, connect=None, axes=None):
super(stick_show, self).__init__(vals, axes=axes, connect=connect)

def process_values(self):
self.vals = self.vals.reshape((3, self.vals.shape[1]/3)).T
"""Convert vector of values into a matrix for use as a 3-D point cloud."""
try:
self.vals = self.vals.reshape((3, self.vals.shape[1]//3)).T
except ValueError as e:
print('Passed values to data_show need to have a dimension which is divisible by 3 for display as they should be a point cloud of 3-D points.')
raise(e)


class skeleton_show(mocap_data_show):
"""data_show class for visualizing motion capture data encoded as a skeleton with angles."""
Expand Down

0 comments on commit 4ea32ef

Please sign in to comment.