original_docstring:  Calculates the error of a low dimensional motion vector s 
      given a list of constraints.
      Note: Time parameters and time constraints will be ignored. 
  
      Parameters
      ---------
      * s : np.ndarray
          low dimensional motion representation
      * data : tuple
          Contains  motion_primitive, motion_primitive_constraints, prev_frames
          
      Returns
      -------
      * error: float
      
docstring: Calculates the error of a low dimensional motion vector s
  given a list of constraints.
  Note: Time parameters and time constraints will be ignored.
  
  Parameters
  
  s : np.ndarray
  low dimensional motion representation
  data : tuple
  Contains  motion_primitive, motion_primitive_constraints, prev_frames
  
  Returns
  
  float
docstring_tokens: Calculates the error of a low dimensional motion vector s given a list of constraints . Note : Time parameters and time constraints will be ignored . Parameters s : np . ndarray low dimensional motion representation data : tuple Contains motion_primitive motion_primitive_constraints prev_frames Returns float
code: def obj_spatial_error_sum_and_magnitude(s, data):
      """ Calculates the error of a low dimensional motion vector s 
      given a list of constraints.
      Note: Time parameters and time constraints will be ignored. 
  
      Parameters
      ---------
      * s : np.ndarray
          low dimensional motion representation
      * data : tuple
          Contains  motion_primitive, motion_primitive_constraints, prev_frames
          
      Returns
      -------
      * error: float
      """
      motion_primitive, mp_constraints, prev_frames = data
      mp_constraints.min_error = mp_constraints.evaluate(motion_primitive, s, prev_frames, use_time_parameters=False)
      #print("errors from all constraints", mp_constraints.min_error)
      return mp_constraints.min_error + np.linalg.norm(s)* 2
code_tokens: def obj_spatial_error_sum_and_magnitude ( s , data ) : motion_primitive , mp_constraints , prev_frames = data mp_constraints . min_error = mp_constraints . evaluate ( motion_primitive , s , prev_frames , use_time_parameters = False ) return mp_constraints . min_error + np . linalg . norm ( s ) * 2
short_docstring: Calculates the error of a low dimensional motion vector s
  given a list of constraints.
short_docstring_tokens: Calculates the error of a low dimensional motion vector s given a list of constraints .
comment: """ Calculates the error of a low dimensional motion vector s 
      given a list of constraints.
      Note: Time parameters and time constraints will be ignored. 
  
      Parameters
      ---------
      * s : np.ndarray
          low dimensional motion representation
      * data : tuple
          Contains  motion_primitive, motion_primitive_constraints, prev_frames
          
      Returns
      -------
      * error: float
      """$SEP$#print("errors from all constraints", mp_constraints.min_error)