author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
538,855
13.06.2022 16:08:26
14,400
8adaac95705bc1c7a85a0afbf161c4faf6b5b0f3
added the phase_mapping and dof_names in ocp as requested
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -191,6 +191,8 @@ class OptimalControlProgram:\nThe mapping to apply on variables\nplot_mappings: Mapping\nThe mapping to apply on the p...
Python
MIT License
pyomeca/bioptim
added the phase_mapping and dof_names in ocp as requested
538,855
13.06.2022 16:52:49
14,400
3157907e9689775e9e0d1ae5316c1e77f28aca95
added if bounds only when asked by the user
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -511,6 +511,7 @@ class PlotOcp:\n)\nmapping_idx += 1\n+ if self.show_bounds and nlp.plot[variable].bounds:\nfor var_idx, variable in enumerate(self.variable_sizes[0]):\nfor j, ax in enumerate...
Python
MIT License
pyomeca/bioptim
added if bounds only when asked by the user
538,842
13.06.2022 17:09:18
14,400
34d046bcf3686001f62bdac602ff7d36c4b1a138
states without intermediate states
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -22,6 +22,7 @@ from ..misc.enums import (\nfrom ..misc.utils import check_version\nfrom ..optimization.non_linear_program import NonLinearProgram\nfrom ..optimizatio...
Python
MIT License
pyomeca/bioptim
states without intermediate states
538,842
13.06.2022 17:39:50
14,400
cd3a839f76ba36e5ab68d4b8a3bdf2f02d2b0949
IRK is not concerned
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -500,7 +500,7 @@ class Solution:\n\"\"\"\nstates_no_intermediate = []\nfor i, nlp in enumerate(self.ocp.nlp):\n- if isinstance(nlp.ode_solver, OdeSolver.COLLOCATION)...
Python
MIT License
pyomeca/bioptim
IRK is not concerned
538,855
14.06.2022 15:07:12
14,400
b1a73251589908ab8d428c986a8332b803e7fc3a
Moved code to appropriate section as requested verbally
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -614,6 +614,7 @@ class ConfigureProblem:\ncombine_name: str = None,\ncombine_state_control_plot: bool = False,\nskip_plot: bool = False,\n+ axes_idx: Mappi...
Python
MIT License
pyomeca/bioptim
Moved code to appropriate section as requested verbally
538,855
14.06.2022 16:39:07
14,400
2988a1706ade20c1633dc064aa8bc410864f9a15
test passing except integrate_single_shooting in COLLOCATION
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -73,8 +73,12 @@ class ConfigureProblem:\n@staticmethod\ndef _modifying_variable_names(nlp, type):\n+ if hasattr(nlp, \"phase_mapping\"):\n+ idx = nlp.phase...
Python
MIT License
pyomeca/bioptim
test passing except integrate_single_shooting in COLLOCATION
538,855
15.06.2022 09:50:16
14,400
0424e40d0f54b4c43017d00d342c297b85d02a03
fixed unpassing test for fatigue
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -520,7 +520,6 @@ class ConfigureProblem:\ndef _manage_fatigue_to_new_variable(\nname: str,\nname_elements: list,\n- ocp,\nnlp,\nas_states: bool,\nas_contro...
Python
MIT License
pyomeca/bioptim
fixed unpassing test for fatigue
538,861
15.06.2022 16:39:30
14,400
4a145f5d25a928df18319b6bfbaccc493cd4dce9
written configuration of Free Floating Dynamics
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -282,6 +282,35 @@ class ConfigureProblem:\n)\nConfigureProblem.configure_soft_contact_function(ocp, nlp)\n+ @staticmethod\n+ def joints_acceleration_driven...
Python
MIT License
pyomeca/bioptim
written configuration of Free Floating Dynamics
538,842
16.06.2022 14:29:30
14,400
3cba0cf2cdb11a7084b18b676963102cf9a7b633
this new method is now tested
[ { "change_type": "MODIFY", "old_path": "tests/test_global_getting_started.py", "new_path": "tests/test_global_getting_started.py", "diff": "@@ -72,31 +72,42 @@ def test_pendulum(ode_solver, use_sx, n_threads):\n# detailed cost values\nsol.detailed_cost_values()\nnp.testing.assert_almost_equal(sol.de...
Python
MIT License
pyomeca/bioptim
this new method is now tested
538,861
16.06.2022 14:52:27
14,400
f14403679aac6e696d6e540f54fc375586d77d3b
added implicit dynamics handling
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -283,10 +283,10 @@ class ConfigureProblem:\nConfigureProblem.configure_soft_contact_function(ocp, nlp)\n@staticmethod\n- def joints_acceleration_driven(ocp...
Python
MIT License
pyomeca/bioptim
added implicit dynamics handling
538,855
20.06.2022 10:49:57
14,400
60ec7ec88630140000a9842b5963b8e913a0027a
added the examples to the example gui
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/__main__.py", "new_path": "bioptim/examples/__main__.py", "diff": "@@ -112,7 +112,8 @@ examples_ = OrderedDict(\nOrderedDict(\n[\n(\"Maximize predicted height CoM\", \"maximize_predicted_height_CoM.py\"),\n- (\"phase transition uneven variable...
Python
MIT License
pyomeca/bioptim
added the examples to the example gui
538,855
20.06.2022 13:56:25
14,400
bcc7e3393a4eb8ebc6a1978509ebc26c71c057f0
Complying with the minor changes requested
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -76,7 +76,7 @@ class ConfigureProblem:\nTo modify the names of the variables added to the plots if there is quaternions\n\"\"\"\n- if hasattr(nlp, \"phase_...
Python
MIT License
pyomeca/bioptim
Complying with the minor changes requested
538,861
28.06.2022 10:46:13
14,400
9ff31d20db987280d9684e70243e7c8da390a039
fixed some inattention errors this dynamic should now work
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -302,10 +302,12 @@ class ConfigureProblem:\nConfigureProblem.configure_q(nlp, as_states=True, as_controls=False)\nConfigureProblem.configure_qdot(nlp, as_s...
Python
MIT License
pyomeca/bioptim
fixed some inattention errors this dynamic should now work
538,861
28.06.2022 12:18:34
14,400
3c521325d9f8045033039ceccdbfc972b9026971
made faster it worked before, just excrutiatingly slow
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "from typing import Union\n-from casadi import horzcat, vertcat, MX, SX\n+from casadi import horzcat, vertcat, MX, SX, Function\nfrom .fatigue.fatigue_dynami...
Python
MIT License
pyomeca/bioptim
made faster it worked before, just excrutiatingly slow
538,861
28.06.2022 15:29:07
14,400
5bb0a4a33e77c09ebfc9a8c1e3a0ae8e18c2c132
corrected function signature
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -463,7 +463,7 @@ class DynamicsFunctions:\n@staticmethod\ndef joints_acceleration_driven(\nstates: MX.sym, controls: MX.sym, parameters: MX.sym, nlp, imp...
Python
MIT License
pyomeca/bioptim
corrected function signature
538,861
28.06.2022 15:41:16
14,400
1fc7ba49115382c848c9a7e648accd95fa782941
written test for JOINTS_ACCELERATION_DRIVEN
[ { "change_type": "MODIFY", "old_path": "tests/test_dynamics.py", "new_path": "tests/test_dynamics.py", "diff": "@@ -1115,6 +1115,40 @@ def test_muscle_driven(with_excitations, with_contact, with_torque, with_externa\n)\n+@pytest.mark.parametrize(\"cx\", [MX, SX])\n+def test_joints_acceleration_drive...
Python
MIT License
pyomeca/bioptim
written test for JOINTS_ACCELERATION_DRIVEN
538,855
28.06.2022 15:55:48
14,400
d21d59caf996e554f55d2ce532bd2ce66940e805
created NoisedInitialGuess class
[ { "change_type": "MODIFY", "old_path": "bioptim/__init__.py", "new_path": "bioptim/__init__.py", "diff": "@@ -175,6 +175,7 @@ from .limits.path_conditions import (\nBounds,\nInitialGuessList,\nInitialGuess,\n+ NoisedInitialGuess,\nQAndQDotBounds,\nQAndQDotAndQDDotBounds,\n)\n" }, { "change_t...
Python
MIT License
pyomeca/bioptim
created NoisedInitialGuess class
538,861
28.06.2022 15:57:10
14,400
972e2185915fe2d7e62f8fac1ba2598252232c85
changed the tuple for vertcat
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -463,7 +463,7 @@ class DynamicsFunctions:\n@staticmethod\ndef joints_acceleration_driven(\nstates: MX.sym, controls: MX.sym, parameters: MX.sym, nlp, imp...
Python
MIT License
pyomeca/bioptim
changed the tuple for vertcat
538,861
28.06.2022 16:43:55
14,400
188a1bfffb141d510325e087c1ec438b68ae5be2
added example for JOINTS_ACCELERATION_DRIVEN
[ { "change_type": "ADD", "old_path": null, "new_path": "bioptim/examples/getting_started/example_joints_acceleration_driven.py", "diff": "+\"\"\"\n+A very simple yet meaningful optimal control program consisting of a double pendulum starting downward and ending upward\n+while requiring the minimum of...
Python
MIT License
pyomeca/bioptim
added example for JOINTS_ACCELERATION_DRIVEN
538,861
28.06.2022 16:48:55
14,400
aab78e4e91b50220530d30d5a1ee172032df30d1
tweaked test to use the same model as the example
[ { "change_type": "MODIFY", "old_path": "tests/test_dynamics.py", "new_path": "tests/test_dynamics.py", "diff": "@@ -1120,7 +1120,7 @@ def test_joints_acceleration_driven(cx):\n# Prepare the program\nnlp = NonLinearProgram()\nnlp.model = biorbd.Model(\n- TestUtils.bioptim_folder() + \"/examples/torqu...
Python
MIT License
pyomeca/bioptim
tweaked test to use the same model as the example
538,855
28.06.2022 17:13:24
14,400
9e11432dd6139865181d45cdfd5450d472f819b7
Fixed the tests for each InterpolationType
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/custom_initial_guess.py", "new_path": "bioptim/examples/getting_started/custom_initial_guess.py", "diff": "@@ -35,18 +35,18 @@ from bioptim import (\n)\n-def custom_init_func(current_shooting_point: int, my_values: np.ndarray, ...
Python
MIT License
pyomeca/bioptim
Fixed the tests for each InterpolationType
538,855
28.06.2022 17:37:23
14,400
24d3ab7b8ebcf12f9396faab6a6d8487fed5dfad
added seed choice option
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -838,6 +838,7 @@ class NoisedInitialGuess(InitialGuess):\nn_elements: int = None,\nn_shooting: int = None,\nbound_push: Union[list, int, float] = 0.1,\n+ seed: int...
Python
MIT License
pyomeca/bioptim
added seed choice option
538,861
29.06.2022 09:35:00
14,400
b0f0bc9a48c11048ee3020a9f248c56c1ae887f1
rephrased example description and renamed every tau to qddot_joints
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_joints_acceleration_driven.py", "new_path": "bioptim/examples/getting_started/example_joints_acceleration_driven.py", "diff": "\"\"\"\n-A very simple yet meaningful optimal control program consisting of a double pendulu...
Python
MIT License
pyomeca/bioptim
rephrased example description and renamed every tau to qddot_joints
538,861
29.06.2022 09:40:10
14,400
66c01e423f77b275df718e5a6905f6ce2713f612
added justification for test of JOINTS_ACCELERATION_DRIVEN
[ { "change_type": "MODIFY", "old_path": "tests/test_dynamics.py", "new_path": "tests/test_dynamics.py", "diff": "@@ -1140,6 +1140,7 @@ def test_joints_acceleration_driven(cx):\nparams = np.random.rand(nlp.parameters.shape, nlp.ns)\nx_out = np.array(nlp.dynamics_func(states, controls, params))\n+ # ob...
Python
MIT License
pyomeca/bioptim
added justification for test of JOINTS_ACCELERATION_DRIVEN
538,855
29.06.2022 10:01:13
14,400
7cb035e196d2ee81c3fdedcbe3918c560bb4af27
requested name changes
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/custom_initial_guess.py", "new_path": "bioptim/examples/getting_started/custom_initial_guess.py", "diff": "@@ -64,7 +64,7 @@ def prepare_ocp(\nbiorbd_model_path: str,\nn_shooting: int,\nfinal_time: float,\n- automatic_random_in...
Python
MIT License
pyomeca/bioptim
requested name changes
538,855
29.06.2022 10:01:47
14,400
65ea41c46a8d36f379fd15287e44b202039a0e1a
useless overwrite
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -864,14 +864,12 @@ class NoisedInitialGuess(InitialGuess):\nAny extra parameters that is associated to the path condition\n\"\"\"\n- super(NoisedInitialGuess, self...
Python
MIT License
pyomeca/bioptim
useless overwrite
538,842
04.07.2022 11:45:56
14,400
70ac31b21473711204b2cb67a78bd2c7358da780
print_cost update in implicit example
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_implicit_dynamics.py", "new_path": "bioptim/examples/getting_started/example_implicit_dynamics.py", "diff": "@@ -220,7 +220,7 @@ def main():\n# sol_implicit.graphs()\n# --- Show the results in a bioviz animation --- #\n...
Python
MIT License
pyomeca/bioptim
print_cost update in implicit example
538,842
04.07.2022 11:59:19
14,400
57d40139970fb669b50a2cb3a27eeb0df34ee05a
adapted rigidbody_dynamics to muscle driven implicit
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -272,7 +272,7 @@ class ConfigureProblem:\nor rigidbody_dynamics == RigidBodyDynamics.DAE_FORWARD_DYNAMICS_JERK\nor rigidbody_dynamics == RigidBodyDynamics....
Python
MIT License
pyomeca/bioptim
adapted rigidbody_dynamics to muscle driven implicit
538,861
05.07.2022 14:48:00
14,400
cd245eddb8e47c69b897ba1c50de5a0c9614fb42
added a check that will spare many headaches check if nb_root > 0, otherwise this dynamic doesn't make sense
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -304,6 +304,9 @@ class ConfigureProblem:\nConfigureProblem.configure_qdot(nlp, as_states=True, as_controls=False)\n# Configure qddot joints\nnb_root = nlp....
Python
MIT License
pyomeca/bioptim
added a check that will spare many headaches check if nb_root > 0, otherwise this dynamic doesn't make sense
538,842
06.07.2022 10:31:35
14,400
e12829d5d12a4a360c096d228a598fb8c28c1663
provided initial guess to super class
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -864,7 +864,7 @@ class NoisedInitialGuess(InitialGuess):\nAny extra parameters that is associated to the path condition\n\"\"\"\n- super(NoisedInitialGuess, self)....
Python
MIT License
pyomeca/bioptim
provided initial guess to super class
538,842
12.07.2022 17:02:16
14,400
c23109753b8687a5e570231487f6c58826bb8c3e
first draft of tests for initial guessed
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -12,6 +12,8 @@ from bioptim import (\nInitialGuess,\nObjective,\nObjectiveFcn,\n+ QAndQDotBounds,\n+ NoisedInitialGuess,\n)\nfrom .utils import TestUtils\n@@...
Python
MIT License
pyomeca/bioptim
first draft of tests for initial guessed
538,842
12.07.2022 17:56:17
14,400
59d070557c938896a175d2a2ad6531038da4f13a
seed for the random
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -191,7 +191,7 @@ def test_update_noised_init():\nnq = biorbd_model.nbQ()\nnqdot = biorbd_model.nbQdot()\nntau = biorbd_model.nbGeneralizedTorque()\n- ns = 5\...
Python
MIT License
pyomeca/bioptim
seed for the random
538,842
13.07.2022 08:58:17
14,400
511e75e51e3218465f95840509d8f0de7bcedbf7
fixed test initial guess
[ { "change_type": "MODIFY", "old_path": "tests/test_global_getting_started.py", "new_path": "tests/test_global_getting_started.py", "diff": "@@ -329,7 +329,7 @@ def test_custom_constraint_track_markers(ode_solver):\n@pytest.mark.parametrize(\"random_init\", [True, False])\n@pytest.mark.parametrize(\"...
Python
MIT License
pyomeca/bioptim
fixed test initial guess
538,842
13.07.2022 10:59:01
14,400
326fafaa408c5ab3c243019652f66df9ee9afbb4
docstring minor
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/custom_initial_guess.py", "new_path": "bioptim/examples/getting_started/custom_initial_guess.py", "diff": "@@ -79,6 +79,8 @@ def prepare_ocp(\nThe number of shooting points\nfinal_time: float\nThe time at the final node\n+ rand...
Python
MIT License
pyomeca/bioptim
docstring minor
538,842
14.07.2022 11:34:47
14,400
b0cd59cbec42d40c7d49a41a3299544c1751262c
correction of mismatch docstring
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -129,9 +129,9 @@ class ConfigureProblem:\nwith_contact: bool\nIf the dynamic with contact should be used\nrigidbody_dynamics: RigidBodyDynamics\n- which ri...
Python
MIT License
pyomeca/bioptim
correction of mismatch docstring
538,842
14.07.2022 11:45:28
14,400
0ecec7f40ec6b2c1a0b42ddae594a64ee12b3334
hints to help the reader.
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/muscle_driven_ocp/muscle_activations_tracker.py", "new_path": "bioptim/examples/muscle_driven_ocp/muscle_activations_tracker.py", "diff": "@@ -95,12 +95,12 @@ def generate_data(\ndynamics_func = biorbd.to_casadi_func(\n\"ForwardDyn\",\ndyn_fun...
Python
MIT License
pyomeca/bioptim
hints to help the reader.
538,842
14.07.2022 16:12:19
14,400
1a0a62f149bd42a1cfb1aa6be7bed46f198718f0
restablished if
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -141,7 +141,7 @@ class DynamicsFunctions:\ndefects = None\n# todo: contacts and fatigue to be handled with implicit dynamics\n- if fatigue is None:\n+ if...
Python
MIT License
pyomeca/bioptim
restablished if
538,842
14.07.2022 16:12:42
14,400
02bcd8213505f9f8fee035e35bd3d093ddcb22e3
more clever if a new dynamics is implemented
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -268,9 +268,8 @@ class ConfigureProblem:\nwhich soft contact dynamic should be used\n\"\"\"\nif (\n- rigidbody_dynamics == RigidBodyDynamics.DAE_FORWARD_DY...
Python
MIT License
pyomeca/bioptim
more clever if a new dynamics is implemented
538,842
14.07.2022 16:26:56
14,400
bb49508c919a09db6bab486f50e96a2411c5a546
testing all the cases of the example.
[ { "change_type": "MODIFY", "old_path": "tests/test_all_examples.py", "new_path": "tests/test_all_examples.py", "diff": "import os\n-\n+import pytest\nimport numpy as np\n+from bioptim import InterpolationType\ndef test__acados__cube():\n@@ -62,13 +63,25 @@ def test__getting_started__custom_dynamics(...
Python
MIT License
pyomeca/bioptim
testing all the cases of the example.
538,842
14.07.2022 17:19:28
14,400
d2a781d15a55329c91916d055057f07c842edf3d
noised init tests
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -185,17 +185,28 @@ def test_add_wrong_param():\n)\n-def test_update_noised_init():\n+@pytest.mark.parametrize(\n+ \"interpolation\",\n+ [\n+ InterpolationTyp...
Python
MIT License
pyomeca/bioptim
noised init tests
538,842
14.07.2022 17:19:47
14,400
04eb511312eb20c928251ece65cfa7852eeaf7ff
make it work for EACH_FRAME
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -909,7 +909,7 @@ class NoisedInitialGuess(InitialGuess):\ntp = initial_guess\nelse:\ntp = InitialGuess(initial_guess, interpolation=interpolation, **parameters)\n-...
Python
MIT License
pyomeca/bioptim
make it work for EACH_FRAME
538,842
14.07.2022 17:49:37
14,400
455a147029550ea94de26dd02045916fe34ac49d
spline are tested ;)
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -233,18 +233,10 @@ def test_update_noised_init(interpolation):\nx = np.zeros((nq * 2, ns + 1))\nu = np.zeros((ntau, ns))\nelif interpolation == Interpolation...
Python
MIT License
pyomeca/bioptim
spline are tested ;)
538,855
19.07.2022 09:24:54
14,400
8ec657b769bac284857db55a3e39463ac172c2c9
fixed dimensions bug for target on markers
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1131,7 +1131,13 @@ class Solution:\n)\n).T\nelse:\n+ if len(penalty.target[0].shape) == 2:\ntarget = penalty.target[0][:, penalty.node_idx.index(idx)]\n+ elif len(p...
Python
MIT License
pyomeca/bioptim
fixed dimensions bug for target on markers
538,847
19.07.2022 13:44:39
0
3e617848b0aa8a74e36430b793795e5301c314fd
animated tracked markers
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1041,6 +1041,9 @@ class Solution:\nall_bioviz.append(bioviz.Viz(self.ocp.nlp[idx_phase].model.path().absolutePath().to_string(), **kwargs))\nall_bioviz[-1].load_mov...
Python
MIT License
pyomeca/bioptim
animated tracked markers
538,842
19.07.2022 12:20:31
14,400
212990a611ba1a8c0c2f604e553717ab1ed2b252
"not" turned into !=
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -267,10 +267,7 @@ class ConfigureProblem:\nsoft_contacts_dynamics: SoftContactDynamics\nwhich soft contact dynamic should be used\n\"\"\"\n- if (\n- not ri...
Python
MIT License
pyomeca/bioptim
"not" turned into !=
538,855
19.07.2022 13:56:39
14,400
88390299f5f8127ed762a2b4b90586ec99657e2b
works for all dimensions
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1131,14 +1131,7 @@ class Solution:\n)\n).T\nelse:\n- if len(penalty.target[0].shape) == 2:\n- target = penalty.target[0][:, penalty.node_idx.index(idx)]\n- elif len...
Python
MIT License
pyomeca/bioptim
works for all dimensions
538,855
19.07.2022 15:19:45
14,400
b433f53787b877912a9b00a9b369308b183d498b
changed ApplyRT since it always returned None
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -149,9 +149,11 @@ class PenaltyFunctionAbstract:\nq_mx = nlp.states[\"q\"].mx\nmodel = nlp.model\njcs_t = biorbd.RotoTrans() if reference_jcs is None else model.globalJCS(q_mx, re...
Python
MIT License
pyomeca/bioptim
changed ApplyRT since it always returned None
538,842
19.07.2022 16:53:13
14,400
c1df90b6094de46cdaa4d0cd1afb56df00c77020
defecttype on other ode solvers
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/ode_solver.py", "new_path": "bioptim/dynamics/ode_solver.py", "diff": "@@ -96,6 +96,7 @@ class RK(OdeSolverBase):\nsuper(RK, self).__init__()\nself.steps = n_integration_steps\nself.is_direct_shooting = True\n+ self.defects_type = DefectType.N...
Python
MIT License
pyomeca/bioptim
defecttype on other ode solvers
538,847
20.07.2022 12:48:13
0
1cc3c2477d261f4306d6f22b67b511108928ff6d
specified conditions
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -8,6 +8,7 @@ from scipy.integrate import solve_ivp\nfrom casadi import vertcat, DM, Function\nfrom matplotlib import pyplot as plt\n+from ..limits.objective_function...
Python
MIT License
pyomeca/bioptim
specified conditions
538,855
20.07.2022 10:38:28
14,400
07d2ed1ce201ea3ad4d2febc2e17140a9ed2d36e
Oups messed up concatenation dimensions
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -153,7 +153,7 @@ class PenaltyFunctionAbstract:\nmarkers = []\nfor m in model.markers(q_mx):\nmarkers_in_jcs = jcs_t.to_mx() @ vertcat(m.to_mx(), 1)\n- markers = vertcat(markers, ...
Python
MIT License
pyomeca/bioptim
Oups messed up concatenation dimensions
538,859
21.07.2022 18:12:48
14,400
f684902787ced252a49c0be0a88071a64251e025
Mayer on initial node Acados
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -109,9 +109,11 @@ class AcadosInterface(SolverInterface):\nself.__set_constr_type(solver_options.constr_type)\nself.lagrange_costs = SX()\n+ self.mayer_c...
Python
MIT License
pyomeca/bioptim
Mayer on initial node Acados
538,859
22.07.2022 09:05:15
14,400
52d787355ada5330152d79c5b64f8be65854fcc3
Fix Vx0 and Vu0 size.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -406,7 +406,9 @@ class AcadosInterface(SolverInterface):\nif objectives.node[0] == Node.START or node == \"start\":\nif is_state:\nacados.Vx0 = np.vstack...
Python
MIT License
pyomeca/bioptim
Fix Vx0 and Vu0 size.
538,859
22.07.2022 09:11:20
14,400
a27c3c4e7ff218c03368a174fc227f0fa6b881b6
Change solver option set and turn back to the initial set convergence.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solver_options.py", "new_path": "bioptim/interfaces/solver_options.py", "diff": "@@ -365,7 +365,11 @@ class Solver:\nself._bound_push = val\nself._bound_frac = val\n- def set_option(self, val, name):\n+ def set_option_unsafe(self, val, name)...
Python
MIT License
pyomeca/bioptim
Change solver option set and turn back to the initial set convergence.
538,859
22.07.2022 10:07:24
14,400
51a618390fa42c1a4ab4e0ff79daea7a0d294b5d
Change pendulum example with acados to have more realistic results
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/acados/pendulum.py", "new_path": "bioptim/examples/acados/pendulum.py", "diff": "@@ -19,6 +19,7 @@ from bioptim import (\nQAndQDotBounds,\nInitialGuessList,\nSolver,\n+ Node,\n)\n@@ -54,14 +55,13 @@ def prepare_ocp(\n# Add objective functions\...
Python
MIT License
pyomeca/bioptim
Change pendulum example with acados to have more realistic results
538,847
22.07.2022 17:19:55
0
f130bc52968c81006de0b435f0fd343081d141a3
new interpolation type
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -106,7 +106,7 @@ class PathCondition(np.ndarray):\nf\"Invalid number of column for InterpolationType.LINEAR_CONTINUOUS \"\nf\"(ncols = {input_array.shape[1]}), the...
Python
MIT License
pyomeca/bioptim
new interpolation type
538,847
25.07.2022 17:05:44
0
ccca60b557ba5ea04825541c34cfdbf4959e86b3
works for all EACH_FRAME and ALL_POINTS
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -134,9 +134,20 @@ class OptimizationVector:\n-------\nThe vector of all init\n\"\"\"\n-\nv_init = InitialGuess(interpolation=InterpolationType....
Python
MIT License
pyomeca/bioptim
works for all EACH_FRAME and ALL_POINTS
538,847
26.07.2022 18:18:27
0
fdb0417824fa6835cc97d3f7c0336f447d467237
mostly functional regardless of interpolation type
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -349,11 +349,18 @@ class OptimizationVector:\nocp = self.ocp\n# Sanity check\n+\nfor i in range(ocp.n_phases):\n+ if hasattr(ocp.original_value...
Python
MIT License
pyomeca/bioptim
mostly functional regardless of interpolation type
538,847
27.07.2022 14:08:43
0
ecf7a4c4f3f85dce95f2fe128ba20230ad196849
works with multiphase ocp
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -4,7 +4,7 @@ import numpy as np\nfrom casadi import vertcat, DM, MX, SX\nfrom .parameters import ParameterList, Parameter\n-from ..limits.path_...
Python
MIT License
pyomeca/bioptim
works with multiphase ocp
538,847
28.07.2022 11:11:00
0
5da710063fb8447634b6d6e86cf0650a1ab5815d
re-reformatted conditions
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1042,10 +1042,12 @@ class Solution:\nall_bioviz.append(bioviz.Viz(self.ocp.nlp[idx_phase].model.path().absolutePath().to_string(), **kwargs))\nall_bioviz[-1].load_m...
Python
MIT License
pyomeca/bioptim
re-reformatted conditions
538,847
28.07.2022 12:02:01
0
6af46300fb3f2072aaac1514ec0bf6b8c288faaf
raised error
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -355,6 +355,9 @@ class OptimizationVector:\n# Sanity check\nfor i in range(ocp.n_phases):\n+ if ocp.nlp[i].x_init.type == InterpolationType.ALL...
Python
MIT License
pyomeca/bioptim
raised error
538,847
28.07.2022 12:24:38
0
f6a357afae1f5b5b53b9c062f3bc8ceb843d0a84
added initial guess for ALL_POINTS
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/custom_initial_guess.py", "new_path": "bioptim/examples/getting_started/custom_initial_guess.py", "diff": "@@ -133,6 +133,12 @@ def prepare_ocp(\nelif initial_guess == InterpolationType.EACH_FRAME:\nx = np.random.random((nq + n...
Python
MIT License
pyomeca/bioptim
added initial guess for ALL_POINTS
538,842
28.07.2022 09:49:15
14,400
55c14d4dad4dc5fb8ad225465b77c650c0b68f64
qddot as statedot
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -167,7 +167,7 @@ class ConfigureProblem:\nrigidbody_dynamics == RigidBodyDynamics.DAE_FORWARD_DYNAMICS_JERK\nor rigidbody_dynamics == RigidBodyDynamics.DAE...
Python
MIT License
pyomeca/bioptim
qddot as statedot
538,847
28.07.2022 14:47:54
0
6136e9761b2d912bade0c06ac05393116cb6eef2
rephrased error message
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -357,7 +357,7 @@ class OptimizationVector:\nfor i in range(ocp.n_phases):\nif ocp.nlp[i].x_init.type == InterpolationType.ALL_POINTS:\nif not o...
Python
MIT License
pyomeca/bioptim
rephrased error message
538,847
28.07.2022 14:59:54
0
b84ac9940bfd28bd1ed38dd3f44f12a70f0c492c
rectified error message
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -245,7 +245,7 @@ class PathCondition(np.ndarray):\nelif self.type == InterpolationType.ALL_POINTS:\nif self.shape[1] != self.n_shooting:\nraise RuntimeError(\n- f\...
Python
MIT License
pyomeca/bioptim
rectified error message
538,842
28.07.2022 14:27:12
14,400
dc2a940ddf1e1142f212daaa0be56c934ba44228
it was an nor not a or
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -267,7 +267,7 @@ class ConfigureProblem:\nsoft_contacts_dynamics: SoftContactDynamics\nwhich soft contact dynamic should be used\n\"\"\"\n- if rigidbody_dy...
Python
MIT License
pyomeca/bioptim
it was an nor not a or
538,842
29.07.2022 17:16:50
14,400
9dfd7ba3a035cd39c022a3049e949fd4e165a321
real noised initial guess
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -923,9 +923,18 @@ class NoisedInitialGuess(InitialGuess):\nif self.seed:\nnp.random.seed(self.seed)\n- self.noised_initial_guess = (\n- init_instance.init + np.ran...
Python
MIT License
pyomeca/bioptim
real noised initial guess
538,847
01.08.2022 14:04:34
0
13c93b7e09d1cfbbcf0428dcea80d941894348e3
modified initial guess for ALL_POINTS
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/custom_initial_guess.py", "new_path": "bioptim/examples/getting_started/custom_initial_guess.py", "diff": "@@ -138,7 +138,8 @@ def prepare_ocp(\nx = np.random.random((nq + nqdot, n_shooting * (ode_solver.polynomial_degree + 1) ...
Python
MIT License
pyomeca/bioptim
modified initial guess for ALL_POINTS
538,847
01.08.2022 14:14:34
0
a8b903587ea7dcf481b795358f7aaab424e401c7
modified NoisedInitialGuess
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -281,7 +281,7 @@ class PathCondition(np.ndarray):\nreturn self[:, 0] + (self[:, 1] - self[:, 0]) * shooting_point / self.n_shooting\nelif self.type == Interpolatio...
Python
MIT License
pyomeca/bioptim
modified NoisedInitialGuess
538,847
01.08.2022 14:36:08
0
c777e395e2b4120638e80a5288149195361443b6
added exception for tests involving ALL_POINTS
[ { "change_type": "MODIFY", "old_path": "tests/test_global_getting_started.py", "new_path": "tests/test_global_getting_started.py", "diff": "@@ -337,6 +337,9 @@ def test_initial_guesses(random_init, interpolation, ode_solver):\node_solver = ode_solver()\nnp.random.seed(42)\n+\n+ if interpolation == I...
Python
MIT License
pyomeca/bioptim
added exception for tests involving ALL_POINTS
538,847
03.08.2022 11:04:18
0
a3da17434e0e805142dadc9a4df61972405ec0c6
added description for new interpolation type
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1489,6 +1489,7 @@ The accepted values are:\n- CONSTANT_WITH_FIRST_AND_LAST_DIFFERENT: Requires three columns. The first and last columns correspond to the first and last node, while the middle corresponds to al...
Python
MIT License
pyomeca/bioptim
added description for new interpolation type
538,847
03.08.2022 13:29:02
0
cf4d66b1d167371656acb044123e81d0c03a93b6
added initial guess tests with COLLOCATION
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -922,7 +922,12 @@ class NoisedInitialGuess(InitialGuess):\ntp = initial_guess\nelse:\ntp = InitialGuess(initial_guess, interpolation=interpolation, **parameters)\n...
Python
MIT License
pyomeca/bioptim
added initial guess tests with COLLOCATION
538,847
03.08.2022 14:28:56
0
6a2eaefb166d3268f745a37a909d65399076a31f
removed increment
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -144,14 +144,13 @@ class OptimizationVector:\nelse:\ninterpolation_type = None\nif nlp.ode_solver.is_direct_collocation and interpolation_type ...
Python
MIT License
pyomeca/bioptim
removed increment
538,859
03.08.2022 15:05:40
14,400
151ed52f358dd86293d18d9b071ec705ca6e62a4
Fix dims for linear LS
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -406,9 +406,9 @@ class AcadosInterface(SolverInterface):\nif objectives.node[0] == Node.START or node == \"start\":\nif is_state:\nacados.Vx0 = np.vstack...
Python
MIT License
pyomeca/bioptim
Fix dims for linear LS
538,859
03.08.2022 15:06:53
14,400
3d0059128ea3eaa3a9f4b28bd246bb53e3d14243
Remove print stats
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -759,7 +759,4 @@ class AcadosInterface(SolverInterface):\nself.__update_solver()\nself.status = self.ocp_solver.solve()\nself.real_time_to_optimize = per...
Python
MIT License
pyomeca/bioptim
Remove print stats
538,859
03.08.2022 15:33:50
14,400
a8ed45754304e34a885db8e542788776ba151e69
Handle objectives functions dims for parameters
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -518,7 +518,7 @@ class AcadosInterface(SolverInterface):\nadd_linear_ls_lagrange(self, J)\n# Deal with first and last node to match ipopt formulation\n- ...
Python
MIT License
pyomeca/bioptim
Handle objectives functions dims for parameters
538,859
03.08.2022 16:41:03
14,400
e9de9a987f322ea9af6e56925808c962b535ac94
Change decimal in test
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -235,7 +235,7 @@ def test_acados_one_lagrange_and_one_mayer(cost_type):\n# Check end state value\nq = sol.states[\"q\"]\n- np.testing.assert_almost_equal(q[0, :], target...
Python
MIT License
pyomeca/bioptim
Change decimal in test
538,859
03.08.2022 17:11:37
14,400
6ff0365d780c4bd983d9e068f48d44a64ac84972
Set Vz0 to None to match previous implementation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -538,6 +538,7 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.cost.Vu_0 = self.Vu0 if self.Vu0.shape[0] else np.zeros((0, 0))\nself.acados_oc...
Python
MIT License
pyomeca/bioptim
Set Vz0 to None to match previous implementation
538,859
04.08.2022 09:26:13
14,400
6effe218a651541180347785043dd223c5ebb114
Modified update function and pass test
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -538,7 +538,6 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.cost.Vu_0 = self.Vu0 if self.Vu0.shape[0] else np.zeros((0, 0))\nself.acados_oc...
Python
MIT License
pyomeca/bioptim
Modified update function and pass test
538,859
04.08.2022 09:43:51
14,400
087f03ff000a0a3debfa71d09de9a42a52c08278
Change pendulum acados example for more realistic results
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/acados/pendulum.py", "new_path": "bioptim/examples/acados/pendulum.py", "diff": "@@ -54,13 +54,13 @@ def prepare_ocp(\n# Add objective functions\nobjective_functions = ObjectiveList()\nobjective_functions.add(ObjectiveFcn.Lagrange.MINIMIZE_CON...
Python
MIT License
pyomeca/bioptim
Change pendulum acados example for more realistic results
538,859
04.08.2022 11:46:17
14,400
0682e49d34a512eeebe6b26835ec2bbf7eefb49e
Change installation file to handle the v0.1.8
[ { "change_type": "MODIFY", "old_path": "external/acados_install_linux.sh", "new_path": "external/acados_install_linux.sh", "diff": "@@ -96,16 +96,21 @@ REPLACE_JSON_DEP_BY=\"'acados_sim_layout.json',\\n 'simulink_default_opts.js\nTO_REPLACE_PATH=\"'..\\/..\\/..\\/'\"\nREPLACE_PATH_BY=\"'..\\/..\\/.....
Python
MIT License
pyomeca/bioptim
Change installation file to handle the v0.1.8
538,859
04.08.2022 13:52:39
14,400
3e4f5ca773e9286b691679a1720130ec6b749eb4
Forgot the unsafe term for acados
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solver_options.py", "new_path": "bioptim/interfaces/solver_options.py", "diff": "@@ -463,7 +463,7 @@ class Solver:\nself._qp_solver = val\nself.set_only_first_options_has_changed(True)\n- def set_option(self, val: Union[float, int, str], nam...
Python
MIT License
pyomeca/bioptim
Forgot the unsafe term for acados
538,859
04.08.2022 14:23:47
14,400
c24077c2b2579301d63c8a3c5eb49d75d45a914f
float and int type for convergence tol
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solver_options.py", "new_path": "bioptim/interfaces/solver_options.py", "diff": "@@ -574,11 +574,11 @@ class Solver:\nself._nlp_solver_tol_stat = val\nself.set_has_tolerance_changed(True)\n- def set_convergence_tolerance(self, val: Union[lis...
Python
MIT License
pyomeca/bioptim
float and int type for convergence tol
538,859
04.08.2022 14:38:53
14,400
a29f86ac8ed99c77c98471d7609d2d2b4d3f8eb7
Delete the argument node
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -396,14 +396,17 @@ class AcadosInterface(SolverInterface):\nf\"{objectives[0]['objective'].type.name} is an incompatible objective term with LINEAR_LS co...
Python
MIT License
pyomeca/bioptim
Delete the argument node
538,842
04.08.2022 14:51:51
14,400
3f94a90a4af9171604422e17900a4da472c88dec
docstrings and noise with none
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -827,6 +827,16 @@ class NoisedInitialGuess(InitialGuess):\n----------\ninit: InitialGuess\nThe noised initial guess\n+ noise: np.array\n+ The noise to add to the i...
Python
MIT License
pyomeca/bioptim
docstrings and noise with none
538,855
05.08.2022 12:29:08
14,400
04273024115355a84ed7c3678d0dc8f8a69ca766
When there was only one index, the vector was repmat
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty_option.py", "new_path": "bioptim/limits/penalty_option.py", "diff": "@@ -282,6 +282,9 @@ class PenaltyOption(OptionGeneric):\nf\"target cannot be a vector (it can be a matrix with time dimension equals to 1 though)\"\n)\nif self.target[0...
Python
MIT License
pyomeca/bioptim
When there was only one index, the vector was repmat
538,861
09.08.2022 15:37:51
14,400
f07617bd34076bfdb88e13d2199d3efa336d24f4
introduced better FcnEnum
[ { "change_type": "ADD", "old_path": null, "new_path": "bioptim/misc/fcn_enum.py", "diff": "+from abc import abstractmethod\n+from enum import Enum\n+\n+\n+class FcnEnum(Enum):\n+ def __call__(self, *args, **kwargs):\n+ \"\"\"\n+ Call the member.\n+ \"\"\"\n+ return self.value[0](*args, **kwargs)\n+\...
Python
MIT License
pyomeca/bioptim
introduced better FcnEnum
538,861
09.08.2022 15:55:52
14,400
762e860468612b1376e6eefbe3bbc0f158278719
adapted code base
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "from typing import Callable, Any, Union\n-from enum import Enum\nfrom casadi import MX, vertcat, Function\nimport numpy as np\n@@ -11,6 +10,7 @@ from .ode_sol...
Python
MIT License
pyomeca/bioptim
adapted code base
538,861
09.08.2022 16:55:57
14,400
a252c9e1aa0720c98b9922e3342424fecbb0b88b
adapted code to pass continuity as an objective this passes current tests todo: add example
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -584,7 +584,7 @@ class ImplicitConstraintFcn(Enum):\nreturn ConstraintFunction\n-class ContinuityFunctions:\n+class ContinuityConstraintFunctions:\n\"\"\"\nInterface betwe...
Python
MIT License
pyomeca/bioptim
adapted code to pass continuity as an objective this passes current tests todo: add example
538,842
09.08.2022 19:01:16
14,400
5ca9bd3d05ad48d9e38085390a90c8c1441502c6
continuity constraints are well displayed
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -755,9 +755,19 @@ class PlotOcp:\n**self.plot_func[key][i].parameters,\n)\nelse:\n+ if (\n+ self.plot_func[key][i].label == \"CONTINUITY\"\n+ and nlp.ode_solver.is_direct_collocation\n+ ):\n+...
Python
MIT License
pyomeca/bioptim
continuity constraints are well displayed
538,859
10.08.2022 08:51:35
14,400
83330c103edc08060c4034dada71d4eacac771bc
Modifie acados install file to find the macos lib path
[ { "change_type": "MODIFY", "old_path": "external/acados_install_linux.sh", "new_path": "external/acados_install_linux.sh", "diff": "@@ -66,9 +66,9 @@ cmake . .. \\\n-DACADOS_PYTHON=ON\\\n-DACADOS_WITH_QPOASES=ON\\\n-DACADOS_WITH_OSQP=ON\\\n+ -DACADOS_WITH_QPDUNES=ON\\\n-DBLASFEO_TARGET=\"$ARG3\"\\\n...
Python
MIT License
pyomeca/bioptim
Modifie acados install file to find the macos lib path
538,842
10.08.2022 09:45:51
14,400
35eeb24376558187202c1b05b40b0ed897f2df5d
declare q qdot qddot as states dot if needed
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -898,7 +898,7 @@ class ConfigureProblem:\nname = \"q\"\nname_q = [name.to_string() for name in nlp.model.nameDof()]\naxes_idx = ConfigureProblem._apply_pha...
Python
MIT License
pyomeca/bioptim
declare q qdot qddot as states dot if needed
538,842
10.08.2022 10:02:31
14,400
0aa238e76c69cd10b58551bd0491e6bce70355e4
completed test for joint acceleration driven
[ { "change_type": "MODIFY", "old_path": "tests/test_dynamics.py", "new_path": "tests/test_dynamics.py", "diff": "@@ -1197,7 +1197,8 @@ def test_muscle_driven(with_excitations, with_contact, with_torque, with_externa\n@pytest.mark.parametrize(\"cx\", [MX, SX])\n-def test_joints_acceleration_driven(cx)...
Python
MIT License
pyomeca/bioptim
completed test for joint acceleration driven
538,842
10.08.2022 14:29:41
14,400
691071887cac3d4bd650bd85f7e501c9ff95b2c5
initialized plot with every collocation methods and uneven polynomial degree
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -768,10 +768,17 @@ class OptimalControlProgram:\nx.reshape((-1, 1)), u.reshape((-1, 1)), p, penalty.weight, _target, dt\n)\n)\n+\n+\nel...
Python
MIT License
pyomeca/bioptim
initialized plot with every collocation methods and uneven polynomial degree
538,842
10.08.2022 16:05:49
14,400
20547e48f65dd1af6fd7c36d63bd4531cc38af4f
implicit defect works in torque driven.
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -155,9 +155,7 @@ class DynamicsFunctions:\n)\n)\ndefects[: dq.shape[0], :] = horzcat(*dq_defects)\n-\n- tau_var = nlp.states[\"tau\"] if \"tau\" in nlp.s...
Python
MIT License
pyomeca/bioptim
implicit defect works in torque driven.
538,861
11.08.2022 09:46:45
14,400
61065f98dea5dfc8e33d0788e59f91241ca15751
from PenaltyType to ConstraintType
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -190,7 +190,7 @@ class ConfigureProblem:\nocp.implicit_constraints.add(\nImplicitConstraintFcn.TAU_EQUALS_INVERSE_DYNAMICS,\nnode=Node.ALL_SHOOTING,\n- con...
Python
MIT License
pyomeca/bioptim
from PenaltyType to ConstraintType
538,861
11.08.2022 09:55:04
14,400
1fb1eafd85f51ccaaef773d7ce872b5ee7125b7a
removed uneeded argument
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -462,7 +462,7 @@ class ContinuityObjectiveFunctions:\nObjectiveFunction.inner_phase_continuity(ocp, weight)\n# Dynamics must be respected between phases\n-...
Python
MIT License
pyomeca/bioptim
removed uneeded argument
538,861
11.08.2022 10:28:06
14,400
2e1454f34d40b0c6ce2903a4ba7bedce7d705722
added example_continuity_as_objective
[ { "change_type": "ADD", "old_path": null, "new_path": "bioptim/examples/getting_started/example_as_objective.py", "diff": "+\"\"\"\n+TODO: Clearly not \"very simple\"! rewrite\n+TODO: General cleaning\n+A very simple yet meaningful optimal control program consisting in a pendulum starting downward a...
Python
MIT License
pyomeca/bioptim
added example_continuity_as_objective
538,861
11.08.2022 10:58:16
14,400
32034fd6741e7720f88220aa6667ff7fb1857631
add continuity objective to appropriate pool
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -67,9 +67,14 @@ class Objective(PenaltyOption):\ndef _add_penalty_to_pool(self, all_pn: Union[PenaltyNodeList, list, tuple]):\nif isinstance(all_pn, (list,...
Python
MIT License
pyomeca/bioptim
add continuity objective to appropriate pool
538,842
11.08.2022 16:38:28
14,400
203366acbf4e13d509ede0f55fbefeb380bb6ca4
make implicit works with bimapping
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -155,6 +155,7 @@ class DynamicsFunctions:\n)\n)\ndefects[: dq.shape[0], :] = horzcat(*dq_defects)\n+ # We modified on purpose the size of the tau to keep...
Python
MIT License
pyomeca/bioptim
make implicit works with bimapping
538,842
11.08.2022 16:48:12
14,400
81c58a08f27f5e2d544ecf178f060f4d1fcfc6f7
hack explained
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -770,7 +770,9 @@ class OptimalControlProgram:\n)\nelif penalty.derivative or penalty.explicit_derivative:\n- if not np.all(x == 0): # i...
Python
MIT License
pyomeca/bioptim
hack explained