Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the tests so they work again on CI! #909

Merged
merged 23 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs : stochastic
Ipuch committed Jan 27, 2025
commit c74bab06abb07c421b58f5ab0fad80272f1cf480
8 changes: 8 additions & 0 deletions bioptim/models/protocols/stochastic_biomodel.py
Original file line number Diff line number Diff line change
@@ -38,6 +38,10 @@ def sensory_reference(self, time, states, controls, parameters, algebraic_states
def reshape_to_matrix(var, shape):
"""
Restore the matrix form of the variables

See Also
--------
reshape_to_vector
"""

if var.shape[0] != shape[0] * shape[1]:
@@ -83,6 +87,10 @@ def reshape_to_cholesky_matrix(var, shape):
def reshape_to_vector(matrix):
"""
Restore the vector form of the matrix

See Also
--------
reshape_to_matrix
"""
shape_0, shape_1 = matrix.shape[0], matrix.shape[1]
if isinstance(matrix, np.ndarray):