Skip to content

Conversation

@EveCharbie
Copy link
Collaborator

@EveCharbie EveCharbie commented Jan 11, 2026

I don't really understand why there was a bug or why this fix works, but on my problem it work.


This change is Reviewable

@EveCharbie
Copy link
Collaborator Author

@pariterre The "TypeError: only 0-dimensional arrays can be converted to Python scalars" error is the error I was trying to fix with this PR... So I guess the problem was not bioptim, but a dependency update ? (Numpy ?)

@EveCharbie EveCharbie changed the title Fix: solve_ivp_interface [QUESTION] Fix: solve_ivp_interface Jan 11, 2026
Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pariterre reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @EveCharbie).


bioptim/interfaces/solve_ivp_interface.py line 123 at r1 (raw file):

        y0=x0,
        t_span=np.array(t_span).reshape(
            2,

-1 is probably more generic?

@Ipuch
Copy link
Collaborator

Ipuch commented Jan 11, 2026

Yes, I think I'm responsible for the squeeze()
It was needed for an update of scipy.

@pariterre
Copy link
Member

I'll take care of this -1 in a separate PR

@pariterre pariterre merged commit f9c6783 into pyomeca:master Jan 28, 2026
14 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants