def to_active(self, x): from interpolation import full_to_active if self.active_dofs is not None: return full_to_active(x, self.active_dofs) raise TrajectoryError("Active DOFs undefined")
def to_active(self, x): from interpolation import full_to_active return full_to_active(x, self.active_dofs)