Skip to content

Commit

Permalink
Merge pull request #143 from Ipuch/ik
Browse files Browse the repository at this point in the history
missing extra commit
  • Loading branch information
Ipuch authored Oct 23, 2024
2 parents e65614e + f535e8c commit 91f26e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bionc/bionc_numpy/inverse_kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,14 @@ def _validate_user_provided_Q_init(

if initial_guess_mode == InitialGuessModeType.USER_PROVIDED:
if Q_init.shape[1] != self.nb_frames:
raise ValueError(f"Q_init.shape[1] must equal the number of frames ({self.nb_frames}).")
raise ValueError(
f"Q_init.shape\\[1\\] must equal the number of frames ({self.nb_frames}). Currently, Q_init.shape\\[1\\] = {Q_init.shape[1]}."
)
elif initial_guess_mode == InitialGuessModeType.USER_PROVIDED_FIRST_FRAME_ONLY:
if not self._frame_per_frame:
raise ValueError("Set frame_per_frame to True or use InitialGuessModeType.USER_PROVIDED.")
if Q_init.shape[1] != 1:
raise ValueError("Provide only the first frame of Q_init.")
raise ValueError("Provide only the first frame of Q_init. Currently, Q_init.shape\\[1\\] = 2")

return Q_init

Expand Down

0 comments on commit 91f26e4

Please sign in to comment.