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,857 | 29.06.2020 15:56:44 | 14,400 | 3b959afe0294affa3d6f065cedb69a36ce12ac45 | Checks removed in slicing method of problem type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -414,12 +414,10 @@ class Problem:\nmin_bound = np.array(nlp[\"U_bounds\"].min[:nlp[\"nbTau\"]+nlp[\"nbMuscle\"]])\nmax_bound = np.array(nlp[\"U_bounds\"].max[:nlp[\"nbTau\"]... | Python | MIT License | pyomeca/bioptim | Checks removed in slicing method of problem type |
538,851 | 29.06.2020 19:18:33 | 14,400 | 966e386f38a25c50166936f216070c3b44d46775 | Move private function of simulate | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "@@ -49,4 +49,12 @@ class Simulate:\noffset_phases += nlp[\"ns\"]\nreturn {\"x\": v}\n+ @staticmethod\n+ def _concat_variables(variables, offset_phases, idx_nodes):\n+ var = np.ndarray(... | Python | MIT License | pyomeca/bioptim | Move private function of simulate |
538,851 | 29.06.2020 19:19:11 | 14,400 | 46b2700b57833afcb7965610a3993e060dfd8268 | adds simulation from_controls_and_initial_states | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "@@ -49,6 +49,22 @@ class Simulate:\noffset_phases += nlp[\"ns\"]\nreturn {\"x\": v}\n+ @staticmethod\n+ def from_controls_and_initial_states(ocp, states, controls):\n+ states = states.... | Python | MIT License | pyomeca/bioptim | adds simulation from_controls_and_initial_states |
538,851 | 29.06.2020 19:19:58 | 14,400 | a9763a1e508fccd665e2ba72e9ea26ffce0e3b34 | remove unuseful for | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "@@ -2,17 +2,9 @@ import numpy as np\nclass Simulate:\n- @staticmethod\n- def _concat_variables(variables, offset_phases, idx_nodes):\n- var = np.ndarray(0)\n- for key in variables.keys... | Python | MIT License | pyomeca/bioptim | remove unuseful for |
538,857 | 29.06.2020 21:33:02 | 14,400 | 6529a227e3876f31b8d30de102bcfaf6cabec72d | Temporary patch for check_and_adjust_dimension for bounds to plot | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -213,7 +213,7 @@ class PlotOcp:\nself.plots_vertical_lines.append(ax.axvline(time, linestyle=\"--\", linewidth=1.2, c=\"k\"))\nif self.axes[variable][0].bounds is not None:\n# TODO: Problem... | Python | MIT License | pyomeca/bioptim | Temporary patch for check_and_adjust_dimension for bounds to plot |
538,855 | 30.06.2020 10:17:06 | 14,400 | e14d6faa8488c00441084a9d67d6e57cdae59bb3 | Changed quaternion norm indentation
Adjusted test to fit with it | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "-from casadi import vertcat, MX\n+from casadi import vertcat, MX, norm_fro\nimport biorbd\n"
},
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/integrator.py",
"ne... | Python | MIT License | pyomeca/bioptim | Changed quaternion norm indentation
Adjusted test to fit with it |
538,843 | 03.07.2020 08:53:53 | -7,200 | fc457cc35fd3593be71f73afa614577f6ef4a927 | wip acados interface and mhe implementation | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -2,8 +2,8 @@ import os\nimport numpy as np\nfrom scipy import linalg\n-from casadi import SX, vertcat\n-from acados_template import AcadosModel, AcadosOcp\n+from cas... | Python | MIT License | pyomeca/bioptim | wip acados interface and mhe implementation |
538,851 | 03.07.2020 14:25:10 | 14,400 | 46e9ea92c5690712d4e7a1222327d6ea4e3c537b | Adds test for simulate in all test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -56,6 +56,9 @@ def test_align_segment_on_rt(ode_solver):\n# save and load\nTestUtils.save_and_load(sol, ocp, False)\n+ # simulate\n+ TestUtils.simulate(sol, ocp)\n+\n@pytest.mark.parametrize(... | Python | MIT License | pyomeca/bioptim | Adds test for simulate in all test |
538,851 | 03.07.2020 14:25:18 | 14,400 | eb69e05e07849ad4fa347fc49410857db1933d27 | simulate test | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "@@ -2,6 +2,7 @@ import numpy as np\nimport os\nimport pickle\n+from copy import copy\nfrom casadi import MX\nimport biorbd\n@@ -12,6 +13,7 @@ from biorbd_optim import (\nInitialConditions,\nBidirectionalM... | Python | MIT License | pyomeca/bioptim | simulate test |
538,851 | 03.07.2020 14:25:56 | 14,400 | 9f05e47cb2bfd1333049b8214c676bf11a1ee7c5 | example fo simulate in pendulum | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "import biorbd\nimport pickle\nfrom time import time\n+import numpy as np\nfrom biorbd_optim import (\nOptimalControlProgram,\n@@ -9,6 +10,8 @@ from biorbd_optim... | Python | MIT License | pyomeca/bioptim | example fo simulate in pendulum |
538,851 | 03.07.2020 14:26:23 | 14,400 | 009273314d275d1d523f4bc9643762b05b951906 | rename solve | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "@@ -3,7 +3,7 @@ import numpy as np\nclass Simulate:\n@staticmethod\n- def from_sol(ocp, sol):\n+ def from_solve(ocp, sol):\nv = np.array(sol[\"x\"]).squeeze()\noffset = 0\nfor nlp in o... | Python | MIT License | pyomeca/bioptim | rename solve |
538,843 | 06.07.2020 10:11:28 | -7,200 | 8f5da0332cb343fa6794557535a57eb4e6722ac0 | Added handling of Mayer term in acados_interfae | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -2,7 +2,7 @@ import os\nimport numpy as np\nfrom scipy import linalg\n-from casadi import SX, vertcat, sum1\n+from casadi import SX, vertcat, sum1, Function\nfrom ac... | Python | MIT License | pyomeca/bioptim | Added handling of Mayer term in acados_interfae |
538,843 | 06.07.2020 10:12:29 | -7,200 | 133a27902c824a88362cd7a69ba0105979e84d5c | commented _add_track_data_to_plot in minimize_state because it crashes with mayer terms | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -31,9 +31,9 @@ class PenaltyFunctionAbstract:\nval = v[states_idx] - data_to_track[t[i], states_idx]\npenalty_type._add_to_penalty(ocp, nlp, val, **extra_param)\n- PenaltyFunctionAbst... | Python | MIT License | pyomeca/bioptim | commented _add_track_data_to_plot in minimize_state because it crashes with mayer terms |
538,851 | 06.07.2020 11:24:20 | 14,400 | 3b85a41f3f160674c5fcedb465ae41332c08f9cc | Adds single_shooting option | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "@@ -3,23 +3,25 @@ import numpy as np\nclass Simulate:\n@staticmethod\n- def from_solve(ocp, sol):\n- v = np.array(sol[\"x\"]).squeeze()\n+ def from_solve(ocp, sol, single_shoot=False):... | Python | MIT License | pyomeca/bioptim | Adds single_shooting option |
538,851 | 06.07.2020 11:29:48 | 14,400 | dc27345656b4cf9d0ec824b0058cff9f2cc9c92d | Adds try to not forget te adds simulation test when it will be possible | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_with_contact_ocp.py",
"new_path": "tests/test_torque_driven_with_contact_ocp.py",
"diff": "@@ -112,8 +112,12 @@ def test_maximize_predicted_height_CoM_with_actuators(ode_solver):\nTestUtils.save_and_load(sol, ocp, False)\n# simulate\n-... | Python | MIT License | pyomeca/bioptim | Adds try to not forget te adds simulation test when it will be possible |
538,851 | 06.07.2020 13:29:20 | 14,400 | f9b1c640480d3cbac923d17fef73c88ef980c536 | import copy and black | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "import numpy as np\n+from copy import copy\nclass Simulate:\n@@ -11,10 +12,10 @@ class Simulate:\n# TODO adds StateTransitionFunctions between phases\nfor idx_nodes in range(nlp[\"ns\"... | Python | MIT License | pyomeca/bioptim | import copy and black |
538,851 | 06.07.2020 13:31:08 | 14,400 | 7541f01d7c69e29ddd7f9130584d29ae6b0d9868 | with Error for simulate | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -305,7 +305,8 @@ def test_state_transitions():\n# TestUtils.save_and_load(sol, ocp, False)\n# simulate\n- # TestUtils.simulate(sol, ocp)\n+ with pytest.raises(AssertionErr... | Python | MIT License | pyomeca/bioptim | with Error for simulate |
538,851 | 06.07.2020 13:31:30 | 14,400 | dbd6b5273b1211ae3c009d9a0653a9c26ab04b0d | with Error for save and load | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "Test for file IO\n\"\"\"\nimport importlib.util\n+from pickle import PicklingError\nfrom pathlib import Path\nimport pytest\n@@ -151,10 +152,11 @@ def test_initial_guesses(in... | Python | MIT License | pyomeca/bioptim | with Error for save and load |
538,851 | 06.07.2020 13:38:27 | 14,400 | d63f0de66098625980498cd797cea4136e427b54 | add test of save_and_load and simulate | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_ocp.py",
"new_path": "tests/test_torque_driven_ocp.py",
"diff": "@@ -3,7 +3,6 @@ Test for file IO\n\"\"\"\nimport importlib.util\nfrom pathlib import Path\n-from copy import copy\nimport pytest\nimport numpy as np\n@@ -465,3 +464,9 @@ ... | Python | MIT License | pyomeca/bioptim | add test of save_and_load and simulate |
538,851 | 06.07.2020 13:38:41 | 14,400 | e3af934519fcfd566fded814d3631b44e935155b | add simulate test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_with_contact_ocp.py",
"new_path": "tests/test_torque_driven_with_contact_ocp.py",
"diff": "@@ -61,7 +61,7 @@ def test_maximize_predicted_height_CoM(ode_solver):\nTestUtils.save_and_load(sol, ocp, False)\n# simulate\n- # TestUtils.simul... | Python | MIT License | pyomeca/bioptim | add simulate test |
538,851 | 06.07.2020 13:39:06 | 14,400 | c7e4b00ef1de22d9af2a146bd3c28fafd20ac248 | adds test simulate and save_and_load | [
{
"change_type": "MODIFY",
"old_path": "tests/test_muscle_tracking.py",
"new_path": "tests/test_muscle_tracking.py",
"diff": "@@ -4,10 +4,12 @@ Test for file IO\nimport importlib.util\nfrom pathlib import Path\n+import pytest\nimport numpy as np\nimport biorbd\nfrom biorbd_optim import Data\n+from .... | Python | MIT License | pyomeca/bioptim | adds test simulate and save_and_load |
538,851 | 06.07.2020 13:42:32 | 14,400 | 5ee780192133323be62138b0023b747834c421d3 | last with...error ! | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_with_contact_ocp.py",
"new_path": "tests/test_torque_driven_with_contact_ocp.py",
"diff": "@@ -61,6 +61,7 @@ def test_maximize_predicted_height_CoM(ode_solver):\nTestUtils.save_and_load(sol, ocp, False)\n# simulate\n+ with pytest.raise... | Python | MIT License | pyomeca/bioptim | last with...error ! |
538,851 | 06.07.2020 16:02:31 | 14,400 | c44f6fe603984b3c4f6d5f6da091ae0d5444d843 | remove single shooting in pendulum.py | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -70,23 +70,15 @@ def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, nb_thread\nif __name__ == \"__main__\":\nocp = prepare_ocp(biorbd_mod... | Python | MIT License | pyomeca/bioptim | remove single shooting in pendulum.py |
538,851 | 06.07.2020 16:03:04 | 14,400 | bb145c169735819759e0a7c23347a5f60382033a | example of simulate with single and multiple shooting | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum_single_shooting.py",
"new_path": "examples/getting_started/pendulum_single_shooting.py",
"diff": "+from pendulum import prepare_ocp\n+\n+from biorbd_optim import InitialConditions, Simulate, ShowResult\n+\n+ocp = prepare_ocp(\... | Python | MIT License | pyomeca/bioptim | example of simulate with single and multiple shooting |
538,851 | 06.07.2020 17:06:39 | 14,400 | deb268b1c4141ca64a6c6461b98a058d9ca94509 | only one parameter for ode_solver | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_with_contact_ocp.py",
"new_path": "tests/test_torque_driven_with_contact_ocp.py",
"diff": "@@ -15,8 +15,7 @@ from biorbd_optim import Data, OdeSolver\nfrom .utils import TestUtils\n-@pytest.mark.parametrize(\"ode_solver\", [OdeSolver.R... | Python | MIT License | pyomeca/bioptim | only one parameter for ode_solver |
538,851 | 07.07.2020 10:35:44 | 14,400 | 118c9df3f2d8567e9e2b950533e19a42eaa81702 | correct and switch single <-> multiple shooting | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "@@ -11,7 +11,7 @@ class Simulate:\nfor nlp in ocp.nlp:\n# TODO adds StateTransitionFunctions between phases\nfor idx_nodes in range(nlp[\"ns\"]):\n- x0 = v_input[offset : offset + nlp[... | Python | MIT License | pyomeca/bioptim | correct and switch single <-> multiple shooting |
538,851 | 07.07.2020 12:19:11 | 14,400 | ca1a6d139378b14d3c65d2a4bde1e872e97e6015 | add comments for simulation | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -78,6 +78,7 @@ if __name__ == \"__main__\":\nprint(f\"Time to solve : {toc}sec\")\n# --- Simulation --- #\n+ # It is not an optimal control, it only apply a ... | Python | MIT License | pyomeca/bioptim | add comments for simulation |
538,851 | 07.07.2020 12:19:37 | 14,400 | 857b1134d020fb6aa43278f1bb767798de120e34 | new way to call prepare_ocp (pendulum) | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum_single_shooting.py",
"new_path": "examples/getting_started/pendulum_single_shooting.py",
"diff": "-from pendulum import prepare_ocp\n+import importlib.util\n+from pathlib import Path\nfrom biorbd_optim import InitialConditions... | Python | MIT License | pyomeca/bioptim | new way to call prepare_ocp (pendulum) |
538,843 | 08.07.2020 09:08:00 | -7,200 | 490ffa0af5cd563ca962430fc6abc575984f328d | wip before merge with pariterre's mhe branch | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -89,11 +89,11 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.dims.nbu = self.acados_ocp.dims.nu\n# set control constraints\n- self.acados_ocp.constraint... | Python | MIT License | pyomeca/bioptim | wip before merge with pariterre's mhe branch |
538,843 | 08.07.2020 16:23:50 | -7,200 | a0928119d7f79b51feb8929bc1fe48ae0dfa1e92 | mhe works with acados in biorbdoptim | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/acados_interface.py",
"new_path": "biorbd_optim/interfaces/acados_interface.py",
"diff": "@@ -29,6 +29,8 @@ class AcadosInterface(SolverInterface):\nself.lagrange_costs = SX()\nself.mayer_costs = SX()\n+ self.dtts = []\n+ self.dtts_e = ... | Python | MIT License | pyomeca/bioptim | mhe works with acados in biorbdoptim |
538,843 | 08.07.2020 16:39:22 | -7,200 | a50b31ad44e424479f930e1bfb710cd3bf31020f | fixed almost all tests. 3 remain broken. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/objective_functions.py",
"new_path": "biorbd_optim/limits/objective_functions.py",
"diff": "@@ -233,6 +233,7 @@ class ObjectiveFunction:\nJ_wt_dtt_to_add_to = nlp[\"J_wt_dtt\"]\nelse:\nJ_to_add_to = ocp.J\n+ J_wt_dtt_to_add_to = []\nif pena... | Python | MIT License | pyomeca/bioptim | fixed almost all tests. 3 remain broken. |
538,843 | 08.07.2020 17:45:17 | -7,200 | 7c9f65d11bb4b6f62278de56430a02bc4fe71712 | changed weight in mhe.py. Added TODO in acados interface for hard coded weights | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/acados_interface.py",
"new_path": "biorbd_optim/interfaces/acados_interface.py",
"diff": "@@ -166,10 +166,13 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.dims.ny_e = self.acados_ocp.model.cost_y_expr_e.shape[0]\nself.acad... | Python | MIT License | pyomeca/bioptim | changed weight in mhe.py. Added TODO in acados interface for hard coded weights |
538,857 | 08.07.2020 16:15:36 | 14,400 | 980428fa423f3c5b48e92ba3b2f0708008ee4625 | Slicing bounds method with operator [] overloading & fix for evaluate_at | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -151,7 +151,7 @@ class PathCondition(np.ndarray):\nelif self.type == InterpolationType.CONSTANT_WITH_FIRST_AND_LAST_DIFFERENT:\nif shooting_point == 0:\nreturn self[:,... | Python | MIT License | pyomeca/bioptim | Slicing bounds method with operator [] overloading & fix for evaluate_at |
538,857 | 08.07.2020 16:19:03 | 14,400 | 68317798e726f24b7e03395e4b59b5aabae4fbcf | Fix with try/except of matching dimension pbm for plotting bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -13,11 +13,20 @@ from .variable_optimization import Data\nfrom .mapping import Mapping\nfrom .enums import PlotType\nfrom .utils import check_version\n+from .path_conditions import Interpol... | Python | MIT License | pyomeca/bioptim | Fix with try/except of matching dimension pbm for plotting bounds |
538,855 | 08.07.2020 16:24:23 | 14,400 | b4e9bff6a870f9cc7829343217b805b9b080cbe9 | First try
Defined functions for dynamics with piece-wise linear controls | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/dynamics_functions.py",
"new_path": "biorbd_optim/dynamics/dynamics_functions.py",
"diff": "-from casadi import vertcat, MX\n+from casadi import vertcat, horzcat, MX\nimport biorbd\n@@ -360,3 +360,11 @@ class DynamicsFunctions:\n# Call th... | Python | MIT License | pyomeca/bioptim | First try
Defined functions for dynamics with piece-wise linear controls |
538,857 | 08.07.2020 16:27:11 | 14,400 | d994ade0270d028a93b3c9b2bcfee02ed2b0847f | Retrieving bounds through slicing in configure_ functions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -218,8 +218,8 @@ class Problem:\nlegend_qdot = [\"qdot_\" + nlp[\"model\"].nameDof()[idx].to_string() for idx in nlp[\"q_dot_mapping\"].reduce.map_idx]\n# Retrieving bounds\... | Python | MIT License | pyomeca/bioptim | Retrieving bounds through slicing in configure_ functions |
538,855 | 08.07.2020 17:36:59 | 14,400 | d33c09de36e77b61a289df276b050e82a53e6742 | Changed size of U_bounds and U_init
Add the final node to interpolate | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -8,7 +8,7 @@ from .limits.continuity import StateTransition\nfrom .limits.objective_functions import Objective\nfrom .limits.path_conditions import Bounds, InitialConditions, QAndQD... | Python | MIT License | pyomeca/bioptim | Changed size of U_bounds and U_init
Add the final node to interpolate |
538,855 | 08.07.2020 18:02:43 | 14,400 | 536f8039d84e465935f6cd0abdb7cc04a0d287ad | indent correction | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/optimal_control_program.py",
"new_path": "biorbd_optim/misc/optimal_control_program.py",
"diff": "@@ -391,6 +391,8 @@ class OptimalControlProgram:\nraise RuntimeError(\"COLLOCATION cannot be used while optimizing parameters\")\nif \"external_... | Python | MIT License | pyomeca/bioptim | indent correction |
538,855 | 08.07.2020 19:03:46 | 14,400 | 0ad4124ce81d2859c808d7d1e789544fea614212 | Corrected for collocation | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "from casadi import MX, vertcat, horzcat, Function\nfrom .dynamics_functions import DynamicsFunctions\n-from ..misc.enums import PlotType\n+from ..misc.enums import Plot... | Python | MIT License | pyomeca/bioptim | Corrected for collocation |
538,855 | 09.07.2020 13:15:13 | 14,400 | ba1620867b0fc9493055bb39d1afcd42b67ccb74 | Included linear controls for muscles | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "-from casadi import MX, vertcat, horzcat, Function\n+from casadi import MX, vertcat, horzcat, horzsplit, Function\nfrom .dynamics_functions import DynamicsFunctions\nfr... | Python | MIT License | pyomeca/bioptim | Included linear controls for muscles |
538,855 | 09.07.2020 14:20:36 | 14,400 | 76325ebe7b4c0d31f7c1a8e116ec822d0416a94e | Corrected for multithread | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "@@ -264,7 +264,7 @@ class Problem:\ndof_names = nlp[\"model\"].nameDof()\n- if nlp[\"ode_solver\"] == OdeSolver.COLLOCATION:\n+ if nlp[\"ode_solver\"] == OdeSolver.COLL... | Python | MIT License | pyomeca/bioptim | Corrected for multithread |
538,851 | 09.07.2020 17:17:05 | 14,400 | b10892b49e866b35e8dc6b444b7092dc94e98110 | start get iterations : create files | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/ipopt_interface.py",
"new_path": "biorbd_optim/interfaces/ipopt_interface.py",
"diff": "@@ -23,16 +23,16 @@ class IpoptInterface(SolverInterface):\ndef online_optim(self, ocp):\nself.options_common[\"iteration_callback\"] = OnlineCallba... | Python | MIT License | pyomeca/bioptim | start get iterations : create files |
538,851 | 09.07.2020 17:18:00 | 14,400 | a0fb2545ee04eb958224e9c34edfb4334c9bf294 | finish get iterations : delete files and return iterations | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/ipopt_interface.py",
"new_path": "biorbd_optim/interfaces/ipopt_interface.py",
"diff": "@@ -33,9 +33,11 @@ class IpoptInterface(SolverInterface):\nwith open(self.file_path, \"wb\") as file:\npickle.dump([], file)\n+ def finish_get_itera... | Python | MIT License | pyomeca/bioptim | finish get iterations : delete files and return iterations |
538,851 | 09.07.2020 17:18:25 | 14,400 | 2b6907cd78a1e1e81ba630c63e140f21ef23c265 | use start and finish functions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/optimal_control_program.py",
"new_path": "biorbd_optim/misc/optimal_control_program.py",
"diff": "@@ -632,10 +632,14 @@ class OptimalControlProgram:\nif show_online_optim:\nsolver_ocp.online_optim(self)\nif return_iterations:\n- solver_ocp.ge... | Python | MIT License | pyomeca/bioptim | use start and finish functions |
538,855 | 10.07.2020 09:41:54 | 14,400 | cfdd8e16bd8f4923b9fb55b64a6e901b69e9a3cd | Tried to change plots
Still get errors | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "from casadi import MX, vertcat, horzcat, horzsplit, Function\nfrom .dynamics_functions import DynamicsFunctions\n-from ..misc.enums import PlotType, OdeSolver\n+from ..... | Python | MIT License | pyomeca/bioptim | Tried to change plots
Still get errors |
538,855 | 10.07.2020 12:54:13 | 14,400 | d02801a6cfe0a52001cf0f928bccc35ef2b18aee | oupsi ! Corrected plots | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -361,7 +361,7 @@ class PlotOcp:\nax = plot[2][-1].axes\nelif plot[0] == PlotType.LINEAR:\nfor cmp, p in enumerate(plot[2]):\n- p.set_xdata(self.t_integrated[phase_idx][cmp])\n+ p.se... | Python | MIT License | pyomeca/bioptim | oupsi ! Corrected plots |
538,855 | 10.07.2020 13:11:59 | 14,400 | f65db4cb20ce501fb1b9ba2de98405938d636d99 | Bad idea, please see next commit instead | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/optimal_control_program.py",
"new_path": "biorbd_optim/misc/optimal_control_program.py",
"diff": "@@ -383,6 +383,9 @@ class OptimalControlProgram:\nnlp[\"dynamics\"].append(RK4(ode, ode_opt))\nelse:\nif self.nb_threads > 1:\n+ if nlp[\"contro... | Python | MIT License | pyomeca/bioptim | Bad idea, please see next commit instead |
538,855 | 10.07.2020 13:17:51 | 14,400 | c1a8141b0d12ab06ee6a1daebb159b794affe9d3 | Added feature to existing example | [
{
"change_type": "MODIFY",
"old_path": "examples/align/align_and_minimize_marker_velocity.py",
"new_path": "examples/align/align_and_minimize_marker_velocity.py",
"diff": "@@ -20,6 +20,7 @@ def prepare_ocp(\nnumber_shooting_points,\nmarker_velocity_or_displacement,\nmarker_in_first_coordinates_syste... | Python | MIT License | pyomeca/bioptim | Added feature to existing example |
538,857 | 10.07.2020 14:27:21 | 14,400 | 613fba355539ea287e0af9b7bb225bd613fe9be5 | Manage time vector for spline type bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -219,7 +219,14 @@ class Bounds:\nmin_bound = np.array(self.min[slice_list.start : slice_list.stop : slice_list.step])\nmax_bound = np.array(self.max[slice_list.start :... | Python | MIT License | pyomeca/bioptim | Manage time vector for spline type bounds |
538,855 | 10.07.2020 15:45:15 | 14,400 | f26b85b85f52a184061e7d0a9252ed55b18651da | Tried to make test
Still have problems with simulate returned values | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/simulate.py",
"new_path": "biorbd_optim/misc/simulate.py",
"diff": "import numpy as np\nfrom copy import copy\n-from .enums import OdeSolver\n+from .enums import OdeSolver, ControlType\nclass Simulate:\n@@ -16,8 +16,19 @@ class Simulate:\nv_o... | Python | MIT License | pyomeca/bioptim | Tried to make test
Still have problems with simulate returned values |
538,851 | 10.07.2020 16:56:56 | 14,400 | 69a349012e861387fcc93ba5bbc33adacd461e99 | Adds test for Simulate.from_controls_and_initial_states | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -10,8 +10,9 @@ import numpy as np\nfrom biorbd_optim import (\nData,\n- OdeSolver,\n+ InitialConditions,\nInterpolationType,\n+ Simulate,\n)\nfrom .utils import TestUtils\... | Python | MIT License | pyomeca/bioptim | Adds test for Simulate.from_controls_and_initial_states |
538,857 | 10.07.2020 17:13:59 | 14,400 | 118f191f08cbe08f0d055dd7a91dc594422df5f5 | Plots file updated | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -10,14 +10,14 @@ from matplotlib import pyplot as plt, lines\nfrom casadi import Callback, nlpsol_out, nlpsol_n_out, Sparsity\nfrom ..misc.data import Data\n-from ..misc.enums impor... | Python | MIT License | pyomeca/bioptim | Plots file updated |
538,855 | 13.07.2020 16:36:37 | 14,400 | ef6c7dc44048f982dc79b2e607cac0681c85bcae | Finally got test to pass :)
Had to change the precision to 6 decimals though :/ | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/data.py",
"new_path": "biorbd_optim/misc/data.py",
"diff": "import numpy as np\nfrom scipy import interpolate\n+from .enums import ControlType\nclass Data:\n@@ -177,6 +178,9 @@ class Data:\noffsets = [offset]\nfor i, nlp in enumerate(ocp.nlp)... | Python | MIT License | pyomeca/bioptim | Finally got test to pass :)
Had to change the precision to 6 decimals though :/ |
538,857 | 13.07.2020 20:21:00 | 14,400 | 402387c5a30df72ec91d268b5fa1a1443d7eb799 | Use of Boundsoption instead of BoundsList for monophase example | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_initial_guess.py",
"new_path": "examples/getting_started/custom_initial_guess.py",
"diff": "@@ -10,7 +10,7 @@ from biorbd_optim import (\nObjective,\nConstraintList,\nConstraint,\n- BoundsList,\n+ BoundsOption,\nQAndQDotBounds,\... | Python | MIT License | pyomeca/bioptim | Use of Boundsoption instead of BoundsList for monophase example |
538,857 | 13.07.2020 20:27:15 | 14,400 | 81f04b1e1dff12e5b6784d38f16629c4a1ba389a | Black... many files ? | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -6,7 +6,15 @@ from .gui.plot import CustomPlot, ShowResult\nfrom .limits.constraints import Constraint, ConstraintList, ConstraintOption\nfrom .limits.continuity import StateTransit... | Python | MIT License | pyomeca/bioptim | Black... many files ? |
538,857 | 13.07.2020 21:06:37 | 14,400 | 529ebcb16e1aa4498a773c8982f26223ec137298 | new Problem.py adapted to plot bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "@@ -229,20 +229,23 @@ class Problem:\nnlp[\"x\"] = vertcat(nlp[\"x\"], q, q_dot)\nnlp[\"var_states\"][\"q\"] = nlp[\"nbQ\"]\nnlp[\"var_states\"][\"q_dot\"] = nlp[\"nbQd... | Python | MIT License | pyomeca/bioptim | new Problem.py adapted to plot bounds |
538,857 | 13.07.2020 21:11:14 | 14,400 | f1801f9517cfb5803561d7024d21220cdc7a4861 | Adapted new ocp to plot bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/optimal_control_program.py",
"new_path": "biorbd_optim/misc/optimal_control_program.py",
"diff": "@@ -278,15 +278,13 @@ class OptimalControlProgram:\n# Declare the time to optimize\nself.__define_variable_time(initial_time_guess, time_min, ti... | Python | MIT License | pyomeca/bioptim | Adapted new ocp to plot bounds |
538,857 | 13.07.2020 21:35:45 | 14,400 | 681d29406c7cc5438222695033e21a3c65a2d7a4 | Adapted new path conditions for plotting bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/path_conditions.py",
"new_path": "biorbd_optim/limits/path_conditions.py",
"diff": "@@ -262,13 +262,12 @@ class Bounds:\nif isinstance(slice_list, slice):\nmin_bound = np.array(self.min[slice_list.start : slice_list.stop : slice_list.step])... | Python | MIT License | pyomeca/bioptim | Adapted new path conditions for plotting bounds |
538,857 | 14.07.2020 09:28:23 | 14,400 | 172cfae10ba7ed479d8eb76c7d7671981e58ecf2 | Fix for t vector time for spline bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/path_conditions.py",
"new_path": "biorbd_optim/limits/path_conditions.py",
"diff": "@@ -263,7 +263,7 @@ class Bounds:\nmin_bound = np.array(self.min[slice_list.start : slice_list.stop : slice_list.step])\nmax_bound = np.array(self.max[slice... | Python | MIT License | pyomeca/bioptim | Fix for t vector time for spline bounds |
538,857 | 14.07.2020 21:53:58 | 14,400 | 1f184296516c91ebf9ac40548479ecbfd62dca56 | Adapt plot for custom_bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -176,8 +176,14 @@ class PlotOcp:\nif nlp[\"plot\"][variable].ylim:\nax.set_ylim(nlp[\"plot\"][variable].ylim)\nelif self.use_bounds_as_ylimit and nlp[\"plot\"][variable].bounds is n... | Python | MIT License | pyomeca/bioptim | Adapt plot for custom_bounds |
538,857 | 14.07.2020 22:01:14 | 14,400 | 0797ced41e141ac39e3d5f8d5511e21d50f8f4af | Adapt path condition with new slice_list attribute | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/path_conditions.py",
"new_path": "biorbd_optim/limits/path_conditions.py",
"diff": "@@ -9,7 +9,7 @@ from ..misc.options_lists import UniquePerPhaseOptionList, OptionGeneric\nclass PathCondition(np.ndarray):\n\"\"\"Sets path constraints\"\"\... | Python | MIT License | pyomeca/bioptim | Adapt path condition with new slice_list attribute |
538,857 | 14.07.2020 22:02:01 | 14,400 | 503c20f1eeeff4748aa5748d4cdaec588a6a693b | Started to add custom_bounds example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/getting_started/custom_bounds.py",
"diff": "+import numpy as np\n+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlProgram,\n+ DynamicsTypeOption,\n+ DynamicsType,\n+ ObjectiveOption,\n+ Objective,\n+ Constrain... | Python | MIT License | pyomeca/bioptim | Started to add custom_bounds example |
538,857 | 14.07.2020 22:43:54 | 14,400 | fab06a47233710f782dd0dd1826df1580a75328b | custom_bounds example completed | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_bounds.py",
"new_path": "examples/getting_started/custom_bounds.py",
"diff": "@@ -18,17 +18,26 @@ from biorbd_optim import (\n)\n-def custom_min(current_shooting_point, n_elements, nb_shooting):\n- my_values = np.array([[-50, -2... | Python | MIT License | pyomeca/bioptim | custom_bounds example completed |
538,843 | 15.07.2020 12:00:46 | -7,200 | e531ef1f43e3008e254c288708e4185eac7a875d | changed handling of weight in acados interface. Addressed most of the comments from previous PR | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/acados_interface.py",
"new_path": "biorbd_optim/interfaces/acados_interface.py",
"diff": "@@ -34,6 +34,8 @@ class AcadosInterface(SolverInterface):\nself.__acados_export_model(ocp)\nself.__prepare_acados(ocp)\nself.ocp_solver = None\n+ ... | Python | MIT License | pyomeca/bioptim | changed handling of weight in acados interface. Addressed most of the comments from previous PR |
538,857 | 15.07.2020 10:26:26 | 14,400 | d2c569fa21879191e7253e69079124c7361331d5 | Cleaning in custom_bounds and custom_initial_guess examples | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_bounds.py",
"new_path": "examples/getting_started/custom_bounds.py",
"diff": "@@ -11,7 +11,6 @@ from biorbd_optim import (\nConstraintList,\nConstraint,\nBoundsOption,\n- QAndQDotBounds,\nInitialConditionsOption,\nShowResult,\nI... | Python | MIT License | pyomeca/bioptim | Cleaning in custom_bounds and custom_initial_guess examples |
538,857 | 15.07.2020 13:28:36 | 14,400 | e1a2030d72a2fbf4d0a6dff0bdba9990d1706fcb | Remove useless # TODO | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "@@ -370,7 +370,6 @@ class Problem:\nnlp[\"u\"] = vertcat(nlp[\"u\"], horzcat(*all_muscles))\nnlp[\"var_controls\"][\"muscles\"] = nlp[\"nbMuscle\"]\nmuscles_bounds = nl... | Python | MIT License | pyomeca/bioptim | Remove useless # TODO |
538,857 | 15.07.2020 13:31:09 | 14,400 | d69fdd81c12f899d77b84c6e8141cd482483ef91 | New plots options dico + necessary fix with isinstance additional test
is isinstance additionnal test works but I don't know why it happens that it is now necessary... | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -54,7 +54,12 @@ class PlotOcp:\nself.ocp = ocp\nself.plot_options = {\n- \"bounds\": {\"color\": \"k\", \"linewidth\": 0.4, \"linestyle\": \"-\"},\n+ \"non_integrated_plots\": {\"li... | Python | MIT License | pyomeca/bioptim | New plots options dico + necessary fix with isinstance additional test
is isinstance additionnal test works but I don't know why it happens that it is now necessary... |
538,857 | 15.07.2020 13:32:16 | 14,400 | 9d8679a0b49f155c8f47187486eabfab76696f9b | Better bounds values for custom_bounds example | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_bounds.py",
"new_path": "examples/getting_started/custom_bounds.py",
"diff": "@@ -18,23 +18,23 @@ from biorbd_optim import (\ndef custom_x_bounds_min(current_shooting_point, n_elements, nb_shooting):\n- my_values = np.array([[-3... | Python | MIT License | pyomeca/bioptim | Better bounds values for custom_bounds example |
538,857 | 15.07.2020 13:33:52 | 14,400 | 6286db0c228b3a088937e097821b8497c76ed3c7 | user interface for adapting graph size to bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -46,7 +46,7 @@ class CustomPlot:\nclass PlotOcp:\n- def __init__(self, ocp, automatically_organize=True, use_bounds_as_ylimit=True):\n+ def __init__(self, ocp, automatically_organiz... | Python | MIT License | pyomeca/bioptim | user interface for adapting graph size to bounds |
538,857 | 15.07.2020 13:34:28 | 14,400 | 939d60d9ef18ad87c1380d582124c4abc0289f1c | Fix for compute ylim computing | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -423,8 +423,8 @@ class PlotOcp:\nif not self.axes[key][0].ylim:\ny_max = -np.inf\ny_min = np.inf\n- for p in ax.get_children():\n- if isinstance(p, lines.Line2D):\n+ children_list =... | Python | MIT License | pyomeca/bioptim | Fix for compute ylim computing |
538,857 | 15.07.2020 13:54:39 | 14,400 | 923e7c37db62c63dabfe84924846a7c983eddec2 | is not is not a good idea | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -182,7 +182,7 @@ class PlotOcp:\nax.set_xlim(0, self.t[-1][-1])\nif nlp[\"plot\"][variable].ylim:\nax.set_ylim(nlp[\"plot\"][variable].ylim)\n- elif self.adapt_graph_size_to_bounds ... | Python | MIT License | pyomeca/bioptim | is not is not a good idea |
538,857 | 15.07.2020 21:42:24 | 14,400 | 18ce5a943a07c21cdc4e05ad93af7da0df29d487 | Remove step_plots options | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -56,8 +56,7 @@ class PlotOcp:\nself.plot_options = {\n\"non_integrated_plots\": {\"linestyle\": \".-\", \"markersize\": 3},\n\"integrated_plots\": {\"linestyle\": \"-\", \"markersiz... | Python | MIT License | pyomeca/bioptim | Remove step_plots options |
538,857 | 15.07.2020 23:49:43 | 14,400 | 65e1ee7e7627bf7df588da6187808a5486b08f30 | Nice tight layout plot option added | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -54,6 +54,7 @@ class PlotOcp:\nself.ocp = ocp\nself.plot_options = {\n+ \"general_options\": {\"use_tight_layout\": True},\n\"non_integrated_plots\": {\"linestyle\": \".-\", \"marke... | Python | MIT License | pyomeca/bioptim | Nice tight layout plot option added |
538,857 | 16.07.2020 00:35:40 | 14,400 | 423fe0b44035087c3c37fb831854aa79468328ee | Fix error in master/pyomeca in one linestyle ("-." instead of inexistant ".-")
Dunno why that didn't raise an error until my recent changes | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -55,7 +55,7 @@ class PlotOcp:\nself.ocp = ocp\nself.plot_options = {\n\"general_options\": {\"use_tight_layout\": True},\n- \"non_integrated_plots\": {\"linestyle\": \".-\", \"marke... | Python | MIT License | pyomeca/bioptim | Fix error in master/pyomeca in one linestyle ("-." instead of inexistant ".-")
Dunno why that didn't raise an error until my recent changes |
538,857 | 16.07.2020 00:52:46 | 14,400 | 649d630370b9d79c561bd08016f5e329dccc45db | Fix in bounds managing in plot.py | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -235,10 +235,10 @@ class PlotOcp:\nnb_elements=len(mapping), nb_shooting=ns\n)\nbounds_min = np.array(\n- [nlp[\"plot\"][variable].bounds.min.evaluate_at(k)[j] for k in range(ns + 1... | Python | MIT License | pyomeca/bioptim | Fix in bounds managing in plot.py |
538,857 | 16.07.2020 01:04:07 | 14,400 | 29f2957ff8adac7ea68c408ec202a2c8ce71329d | Change default value of use_tight_layout to False
Because sometimes tight layout can reduce the graphs too much and make them less readable, and so far no one has shown to be excessively bothered by the lack of use of tight layout. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -54,7 +54,7 @@ class PlotOcp:\nself.ocp = ocp\nself.plot_options = {\n- \"general_options\": {\"use_tight_layout\": True},\n+ \"general_options\": {\"use_tight_layout\": False},\n\"... | Python | MIT License | pyomeca/bioptim | Change default value of use_tight_layout to False
Because sometimes tight layout can reduce the graphs too much and make them less readable, and so far no one has shown to be excessively bothered by the lack of use of tight layout. |
538,843 | 16.07.2020 15:56:33 | -7,200 | d47c9de1f679d0d7c71a81cdff2152df6379fec0 | Modified acados_interface to take x_ and u_ bounds into account. Added example on how to switch between acados and ipopt on a simple example | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/acados_interface.py",
"new_path": "biorbd_optim/interfaces/acados_interface.py",
"diff": "@@ -88,18 +88,27 @@ class AcadosInterface(SolverInterface):\nelse:\nself.acados_ocp.constraints.x0 = np.array(ocp.nlp[i][\"X_bounds\"].min[:, 0])\... | Python | MIT License | pyomeca/bioptim | Modified acados_interface to take x_ and u_ bounds into account. Added example on how to switch between acados and ipopt on a simple example |
538,857 | 18.07.2020 01:07:19 | 14,400 | c59b2f25058d1bfb95463c48f60c6df3c0520b31 | map method can work now also with list and unidimensional list or array | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/mapping.py",
"new_path": "biorbd_optim/misc/mapping.py",
"diff": "+import numpy as np\n+\nclass BidirectionalMapping:\ndef __init__(self, expand_mapping, reducing_mapping):\nif not isinstance(expand_mapping, Mapping):\n@@ -33,9 +35,17 @@ clas... | Python | MIT License | pyomeca/bioptim | map method can work now also with list and unidimensional list or array |
538,843 | 20.07.2020 10:24:03 | -7,200 | bce0d048164ece4b33f6b4d1fb057a1f0f7fedf5 | Adapted static arm to work with acados | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"new_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"diff": "@@ -17,6 +17,7 @@ from biorbd_optim import (\nBoundsList,\nQAndQDotBounds,\nInitialConditionsList,\n+ Solver\n)\n@@ -111... | Python | MIT License | pyomeca/bioptim | Adapted static arm to work with acados |
538,851 | 20.07.2020 15:33:59 | 14,400 | 77fdddb07a92ecd08c812a0cd30421272a70a388 | remove "s" in "nbMuscles" (nlp) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/optimal_control_program.py",
"new_path": "biorbd_optim/misc/optimal_control_program.py",
"diff": "@@ -330,7 +330,7 @@ class OptimalControlProgram:\nnlp[\"nbQ\"] = 0\nnlp[\"nbQdot\"] = 0\nnlp[\"nbTau\"] = 0\n- nlp[\"nbMuscles\"] = 0\n+ nlp[\"n... | Python | MIT License | pyomeca/bioptim | remove "s" in "nbMuscles" (nlp) |
538,857 | 20.07.2020 19:07:05 | 14,400 | e2f33ad2b72593a567b97ddcd68f1a0acee575dd | Test of settings for plots | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -419,13 +419,13 @@ class PlotOcp:\np.set_ydata((np.nan, np.nan))\nfor key in self.axes:\n- if not self.adapt_graph_size_to_bounds:\n+ if (not self.adapt_graph_size_to_bounds) or (se... | Python | MIT License | pyomeca/bioptim | Test of settings for plots |
538,857 | 20.07.2020 19:28:55 | 14,400 | b4cb261bf8fba770780809cefca5931223c22eda | Removal of the different treatment for 1D data | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/mapping.py",
"new_path": "biorbd_optim/misc/mapping.py",
"diff": "@@ -35,12 +35,6 @@ class Mapping:\nExpected result:\n- mapped_obj == np.array([0.1, 0.2, 0.2, -0.4, 0, 0.1])\n\"\"\"\n- if len(obj.shape) == 1:\n- mapped_obj = obj[self.map_idx... | Python | MIT License | pyomeca/bioptim | Removal of the different treatment for 1D data |
538,851 | 22.07.2020 15:33:34 | 14,400 | 06e99c902e5ee86543bdd06ba03e7deea715fe91 | pendullum show how to use obj analyse | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "import biorbd\nimport pickle\n+import numpy as np\nfrom time import time\nfrom biorbd_optim import (\n@@ -70,7 +71,7 @@ if __name__ == \"__main__\":\n# --- Solv... | Python | MIT License | pyomeca/bioptim | pendullum show how to use obj analyse |
538,851 | 22.07.2020 15:34:52 | 14,400 | 9aee8ea7c06753e01c34a5262f1ad7f2a58679b8 | adds test of return_objectives in static arm | [
{
"change_type": "MODIFY",
"old_path": "tests/test_muscle_driven_ocp.py",
"new_path": "tests/test_muscle_driven_ocp.py",
"diff": "@@ -22,7 +22,19 @@ def test_muscle_driven_ocp():\nocp = static_arm.prepare_ocp(\nstr(PROJECT_FOLDER) + \"/examples/muscle_driven_ocp/arm26.bioMod\", final_time=2, number_... | Python | MIT License | pyomeca/bioptim | adds test of return_objectives in static arm |
538,851 | 22.07.2020 15:35:07 | 14,400 | 63aadaf202a65f0049bb158aa3a67188dd1c17df | return_objectives in mutliphase | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_ocp.py",
"new_path": "tests/test_torque_driven_ocp.py",
"diff": "@@ -213,7 +213,30 @@ def test_multiphase_align_markers(ode_solver):\nocp = multiphase_align_markers.prepare_ocp(\nbiorbd_model_path=str(PROJECT_FOLDER) + \"/examples/torq... | Python | MIT License | pyomeca/bioptim | return_objectives in mutliphase |
538,851 | 22.07.2020 15:36:03 | 14,400 | 7331ffb9205aa9bce32fc6a154ee9f83bb789109 | new structure for out of solve | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/ipopt_interface.py",
"new_path": "biorbd_optim/interfaces/ipopt_interface.py",
"diff": "import os\nimport pickle\n-from casadi import vertcat, sum1, nlpsol, dot\n+from casadi import vertcat, sum1, nlpsol\nfrom .solver_interface import S... | Python | MIT License | pyomeca/bioptim | new structure for out of solve |
538,851 | 22.07.2020 15:36:19 | 14,400 | ab510f6d43dc70ccb8dc0d69b142392df6b99a71 | adds get_objective_values | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/solver_interface.py",
"new_path": "biorbd_optim/interfaces/solver_interface.py",
"diff": "+import numpy as np\n+import casadi\n+\n+from ..misc.enums import Instant\n+from ..limits.objective_functions import get_objective_value\n+\nclass... | Python | MIT License | pyomeca/bioptim | adds get_objective_values |
538,851 | 22.07.2020 15:36:44 | 14,400 | c64f08b18aa9543a64534c1f2c99427dc7e552c1 | adds analyse class for obj | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/objective_functions.py",
"new_path": "biorbd_optim/limits/objective_functions.py",
"diff": "from enum import Enum\n-\n+import numpy as np\nimport casadi\n+from casadi import dot, sum1\nfrom .penalty import PenaltyType, PenaltyFunctionAbstra... | Python | MIT License | pyomeca/bioptim | adds analyse class for obj |
538,851 | 22.07.2020 15:38:07 | 14,400 | 6980e6a3c966c0f61b7a723e42aec07dce60eca3 | adds option return_objectives in solve | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/optimal_control_program.py",
"new_path": "biorbd_optim/misc/optimal_control_program.py",
"diff": "@@ -636,7 +636,7 @@ class OptimalControlProgram:\nnlp[\"plot\"][plot_name] = custom_plot\ndef solve(\n- self, solver=Solver.IPOPT, show_online_o... | Python | MIT License | pyomeca/bioptim | adds option return_objectives in solve |
538,851 | 22.07.2020 15:40:04 | 14,400 | d42b13e267d19497e1f25fd837b7cb1414f630b1 | unuse option of ipopt | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"new_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"diff": "@@ -102,7 +102,7 @@ if __name__ == \"__main__\":\nocp = prepare_ocp(long_optim=False)\n# --- Solve the program --- #\n- sol ... | Python | MIT License | pyomeca/bioptim | unuse option of ipopt |
538,851 | 22.07.2020 16:09:06 | 14,400 | d297990a97a908c23a4db061339e4fa17273b438 | correct index of idx_obj | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/objective_functions.py",
"new_path": "biorbd_optim/limits/objective_functions.py",
"diff": "@@ -366,7 +366,7 @@ class Objective:\nprint(f\"********** Phase {idx_phase} **********\")\nfor idx_obj in range(phase.shape[0]):\nprint(\n- f\"{self... | Python | MIT License | pyomeca/bioptim | correct index of idx_obj |
538,843 | 23.07.2020 13:30:56 | -7,200 | b4d4cca13e85bd06e049ddb118eaeafc8acf86da | adapted return_objectives for compatibility with ACADOS | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/acados_interface.py",
"new_path": "biorbd_optim/interfaces/acados_interface.py",
"diff": "@@ -36,6 +36,7 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver = None\nself.W = np.zeros((0, 0))\nself.W_e = np.zeros((0, 0))\n+ self.... | Python | MIT License | pyomeca/bioptim | adapted return_objectives for compatibility with ACADOS |
538,857 | 26.07.2020 21:16:21 | 14,400 | e87ee0399617379b02ac22fef6c980d4be503e47 | fix for multiphase bounds plotting | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/gui/plot.py",
"new_path": "biorbd_optim/gui/plot.py",
"diff": "@@ -226,19 +226,43 @@ class PlotOcp:\nintersections_time = self.find_phases_intersections()\nfor time in intersections_time:\nself.plots_vertical_lines.append(ax.axvline(time, **self.p... | Python | MIT License | pyomeca/bioptim | fix for multiphase bounds plotting |
538,857 | 26.07.2020 21:58:07 | 14,400 | a37a1f81cd60e1df6301ef1e3647c2a406740b41 | new dyn func for contact forces with actuators | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/dynamics_functions.py",
"new_path": "biorbd_optim/dynamics/dynamics_functions.py",
"diff": "@@ -61,7 +61,7 @@ class DynamicsFunctions:\nreturn vertcat(qdot_reduced, qddot_reduced)\n@staticmethod\n- def forces_from_forward_dynamics_with_co... | Python | MIT License | pyomeca/bioptim | new dyn func for contact forces with actuators |
538,857 | 26.07.2020 21:58:40 | 14,400 | 905b4587395f30bdb6449521e4e78e6fc1e7402a | fix contact force for torque activation driven problem | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "@@ -46,7 +46,7 @@ class Problem:\nProblem.configure_forward_dyn_func(ocp, nlp, DynamicsFunctions.custom)\nelse:\nProblem.configure_forward_dyn_func(ocp, nlp, DynamicsFu... | Python | MIT License | pyomeca/bioptim | fix contact force for torque activation driven problem |
538,851 | 27.07.2020 10:14:44 | 14,400 | 5fa67b4451ad6fbfb53da6030a407b25a1a323c2 | Need path condition for violin | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -14,6 +14,7 @@ from .limits.path_conditions import (\nInitialConditionsList,\nInitialConditionsOption,\nQAndQDotBounds,\n+ PathCondition,\n)\nfrom .misc.data import Data\nfrom .misc... | Python | MIT License | pyomeca/bioptim | Need path condition for violin |
538,851 | 27.07.2020 10:15:31 | 14,400 | bfafd0e986f3cb469879b883661cefb5e2730138 | adds idx_phases in free variable | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics/problem.py",
"new_path": "biorbd_optim/dynamics/problem.py",
"diff": "@@ -332,14 +332,14 @@ class Problem:\nmuscles_mx = MX()\nfor name in nlp[\"muscleNames\"]:\n- muscles_mx = vertcat(muscles_mx, MX.sym(f\"Muscle_{name}\", 1, 1))\n+ musc... | Python | MIT License | pyomeca/bioptim | adds idx_phases in free variable |
538,851 | 27.07.2020 10:15:54 | 14,400 | 8260e80f70bcc6a2fe8204b2e7a2fd331b1abe2e | move objectif functin | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/interfaces/solver_interface.py",
"new_path": "biorbd_optim/interfaces/solver_interface.py",
"diff": "@@ -2,7 +2,7 @@ import numpy as np\nimport casadi\nfrom ..misc.enums import Instant\n-from ..limits.objective_functions import get_objective_value... | Python | MIT License | pyomeca/bioptim | move objectif functin |
538,851 | 27.07.2020 10:16:07 | 14,400 | 10e16793e48476425aa7aae23963f74a716f157c | move analyse function | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/limits/objective_functions.py",
"new_path": "biorbd_optim/limits/objective_functions.py",
"diff": "@@ -375,6 +375,57 @@ class Objective:\nfor idx_node in range(phase.shape[1]):\nprint(f\"Node {idx_node} : {np.nansum(phase[:, idx_node])}\")\n+ def ... | Python | MIT License | pyomeca/bioptim | move analyse function |
538,851 | 27.07.2020 10:16:53 | 14,400 | 4ad5ad30ecbaa1e0bbb7d70eadf5da5a90fb8120 | interpolate controls on top of states ! | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/misc/data.py",
"new_path": "biorbd_optim/misc/data.py",
"diff": "@@ -232,6 +232,7 @@ class Data:\nif integrate:\nraise RuntimeError(\"interpolate values are not compatible yet with integrated values\")\ndata_states = Data._get_data_interpolated_fr... | Python | MIT License | pyomeca/bioptim | interpolate controls on top of states ! |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.