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 | 08.05.2020 13:42:48 | 14,400 | 88379efca23d4ce69790d8beeec5b9276a640522 | Example of using custom constraint + minors changes | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_driven_ocp/custom_constraint.py",
"diff": "+\"\"\"\n+File that shows an example of using a custom constraint.\n+As an example, this custom constraint reproduces exactly the behavior of the ALIGN_MARKERS constraint.\n+\"\"\"\n+imp... | Python | MIT License | pyomeca/bioptim | Example of using custom constraint + minors changes |
538,857 | 08.05.2020 14:00:59 | 14,400 | a7e73b22869af54d63894a1c4eaf0c04a60227d6 | Test of custom_constraint example added | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/custom_constraint.py",
"new_path": "examples/torque_driven_ocp/custom_constraint.py",
"diff": "@@ -17,7 +17,7 @@ from biorbd_optim import (\nOdeSolver,\n)\n-def custom_func(ocp, nlp, t, x, u, first_marker_idx, second_marker_idx):\n+d... | Python | MIT License | pyomeca/bioptim | Test of custom_constraint example added |
538,857 | 08.05.2020 15:08:06 | 14,400 | 99c51c0d2c513d02cd3f1e2787ed8d60c1bc55c1 | phase_idx added in dict nlp | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -71,6 +71,8 @@ class OptimalControlProgram:\nself.nb_phases = len(biorbd_model)\nself.nlp = [{} for _ in range(self.nb_phases)]\nself.__add_to_nlp(\"mo... | Python | MIT License | pyomeca/bioptim | phase_idx added in dict nlp |
538,857 | 08.05.2020 15:08:51 | 14,400 | 41d6989dcd5c5b2de233c75dd4ccb34819819a37 | [WIP] Example of custom constraint fixed | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/custom_constraint.py",
"new_path": "examples/torque_driven_ocp/custom_constraint.py",
"diff": "@@ -19,12 +19,14 @@ from biorbd_optim import (\ndef custom_func_align_markers(ocp, nlp, t, x, u, first_marker_idx, second_marker_idx):\nnq... | Python | MIT License | pyomeca/bioptim | [WIP] Example of custom constraint fixed |
538,851 | 08.05.2020 15:34:04 | 14,400 | e55fb9fb7fd3544fb63f312185624d8f881bca6d | exemples results | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"new_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"diff": "@@ -107,4 +107,4 @@ if __name__ == \"__main__\":\n# --- Show results --- #\nresult = ShowResult(ocp, sol)\n- result.graphs()... | Python | MIT License | pyomeca/bioptim | exemples results |
538,857 | 08.05.2020 17:58:55 | 14,400 | 77de01de985f5d6c3c3c6f095c5497877d7a2721 | phase_idx added in nlp dict fixed for multiphasing | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -71,7 +71,7 @@ class OptimalControlProgram:\nself.nb_phases = len(biorbd_model)\nself.nlp = [{} for _ in range(self.nb_phases)]\nself.__add_to_nlp(\"mo... | Python | MIT License | pyomeca/bioptim | phase_idx added in nlp dict fixed for multiphasing |
538,857 | 08.05.2020 18:00:00 | 14,400 | 0e06c6131ba6b31163a8faca764f5b760ae5f4f7 | Example of custom constraint modified (use of vertcat) | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/custom_constraint.py",
"new_path": "examples/torque_driven_ocp/custom_constraint.py",
"diff": "@@ -3,6 +3,7 @@ File that shows an example of using a custom constraint.\nAs an example, this custom constraint reproduces exactly the beh... | Python | MIT License | pyomeca/bioptim | Example of custom constraint modified (use of vertcat) |
538,857 | 08.05.2020 18:00:08 | 14,400 | e0baaf0c114a52514c6cd530d8f9bf9345658077 | Started to develop custom function for phase transition of jumper | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -17,6 +17,14 @@ from biorbd_optim import (\nShowResult,\n)\n+def custom_func_phase_transition(ocp, nlp, t, x, u, first_marker_idx, second_marker_idx):\n+ nq = nl... | Python | MIT License | pyomeca/bioptim | Started to develop custom function for phase transition of jumper |
538,850 | 11.05.2020 03:36:09 | 14,400 | 2d771db55c0e91872e89efcc8dcad042aa5a005d | Add the class 'Initialization' at 'enums' file, and where it is used | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/enums.py",
"new_path": "biorbd_optim/enums.py",
"diff": "@@ -34,3 +34,14 @@ class Instant(Enum):\nINTERMEDIATES = \"intermediates\"\nEND = \"end\"\nALL = \"all\"\n+\n+class Initialization(Enum):\n+ \"\"\"\n+ Two kind of initialization of your prob... | Python | MIT License | pyomeca/bioptim | Add the class 'Initialization' at 'enums' file, and where it is used |
538,850 | 11.05.2020 03:40:16 | 14,400 | ad3bfd67378d698c94141cf72cbad452d68cc2d7 | Change the name of the value to use the class 'Initialization'
'init_lineaire' to 'initial_type' | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -254,12 +254,12 @@ class OptimalControlProgram:\nelse:\nV_bounds.min[offset : offset + nlp[\"nu\"]] = nlp[\"U_bounds\"].min\nV_bounds.max[offset : offs... | Python | MIT License | pyomeca/bioptim | Change the name of the value to use the class 'Initialization'
'init_lineaire' to 'initial_type' |
538,850 | 11.05.2020 03:43:12 | 14,400 | 759a9eaf58f3b768e7ef73e4fd2540e5348b4b18 | [WIP] modification of 'regulation' function, 'InitialConditions' class
Modifiation after pyomeca recommandations | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -136,22 +136,30 @@ class InitialConditions(PathCondition):\n\"\"\"\nif len(self.init) == 0:\nself.init = [0] * nb_elements\n- if self.init_lineaire:\n- self.regulation... | Python | MIT License | pyomeca/bioptim | [WIP] modification of 'regulation' function, 'InitialConditions' class
Modifiation after pyomeca recommandations |
538,850 | 11.05.2020 03:46:34 | 14,400 | 3271cc531af69d98f7f422edc3f67ed9152f95d2 | Add the function 'get_init' to 'InitialConditions' class
Attribute the value in function of the initialization type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -169,3 +169,11 @@ class InitialConditions(PathCondition):\nself.init += other.init\nself.first_node_init += other.first_node_init\nself.last_node_init += other.last_no... | Python | MIT License | pyomeca/bioptim | Add the function 'get_init' to 'InitialConditions' class
Attribute the value in function of the initialization type |
538,850 | 11.05.2020 03:48:38 | 14,400 | eb32709e3a48b030a1947fd36f4f4494e9ccec20 | [WIP] Use the new function 'get_init', optimal_control_program file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -238,14 +238,18 @@ class OptimalControlProgram:\nelse:\nV_bounds.min[offset : offset + nlp[\"nx\"]] = nlp[\"X_bounds\"].min\nV_bounds.max[offset : offs... | Python | MIT License | pyomeca/bioptim | [WIP] Use the new function 'get_init', optimal_control_program file |
538,851 | 11.05.2020 09:53:57 | 14,400 | b448a1a00535d1a62f842fa300ce213084b96a7e | reintegrated old development | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/biorbd_interface.py",
"new_path": "biorbd_optim/biorbd_interface.py",
"diff": "@@ -3,6 +3,8 @@ from casadi import MX\nimport biorbd\n+class BiorbdInterface:\n+ @staticmethod\ndef convert_array_to_external_forces(all_f_ext):\n# TODO: Look if f_ext ... | Python | MIT License | pyomeca/bioptim | reintegrated old development |
538,850 | 11.05.2020 10:41:52 | 14,400 | 8a7421397ff0333efec9e36617bdad96f2b2c8de | Improve the plot part of 'muscle_excitations_tracker' | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_ocp/muscle_excitations_tracker.py",
"new_path": "examples/muscle_driven_ocp/muscle_excitations_tracker.py",
"diff": "@@ -225,14 +225,26 @@ if __name__ == \"__main__\":\nfor i in range(markers.shape[1]):\nplt.plot(np.linspace(0, 2, n_shoo... | Python | MIT License | pyomeca/bioptim | Improve the plot part of 'muscle_excitations_tracker' |
538,865 | 11.05.2020 12:04:32 | 14,400 | b86d47e4e96f44533db1cc52702e4f4ed6f2ff2a | Use nlp[contact_force_func] instead of casadi function | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -173,18 +173,6 @@ class PenaltyFunctionAbstract:\n@staticmethod\ndef minimize_contact_forces(penalty_type, ocp, nlp, t, x, u, contacts_idx=(), data_to_track=(), **extra_param):\n- con... | Python | MIT License | pyomeca/bioptim | Use nlp[contact_force_func] instead of casadi function |
538,865 | 11.05.2020 12:10:12 | 14,400 | 93207c928ddce3a8c12266ff40b143c759d8ed25 | Added example for muscle driven with contact | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/muscle_driven_with_contact/2segments_4dof_2contacts_1muscle.bioMod",
"diff": "+version 4\n+\n+// Seg0\n+segment Seg0\n+ translations yz\n+ rotations x\n+ ranges -10 10\n+ -10 10\n+ -2 1\n+ mass 12\n+ inertia\n+ 0.15 0.00 0.00\n+ 0.00 0.... | Python | MIT License | pyomeca/bioptim | Added example for muscle driven with contact |
538,865 | 11.05.2020 17:10:32 | 14,400 | 548350b25a84d0220973de78dea8a0f752ec68df | [WIP] test tracking contact forces | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/muscle_driven_with_contact/muscle_activations_tracker_contact.py",
"diff": "+from scipy.integrate import solve_ivp\n+import numpy as np\n+import biorbd\n+from casadi import MX, Function\n+from matplotlib import pyplot as plt\n+\n+from b... | Python | MIT License | pyomeca/bioptim | [WIP] test tracking contact forces |
538,851 | 08.05.2020 18:24:01 | 14,400 | 5e64ddc597ad075abb84f3c1506b4a124218f0d4 | Delete external_forces directory | [
{
"change_type": "DELETE",
"old_path": "examples/external_forces/anti_gravity.py",
"new_path": null,
"diff": "-import numpy as np\n-\n-import biorbd\n-\n-from biorbd_optim import (\n- Instant,\n- OptimalControlProgram,\n- ProblemType,\n- Objective,\n- Constraint,\n- Bounds,\n- QAndQDotBounds,\n- Ini... | Python | MIT License | pyomeca/bioptim | Delete external_forces directory |
538,851 | 12.05.2020 10:06:08 | 14,400 | f993ceee1014dc8d4655246b2c00e0c3c3bc8d8a | Add marker and external force in cube.bioMod | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/cube.bioMod",
"new_path": "examples/torque_driven_ocp/cube.bioMod",
"diff": "@@ -7,7 +7,7 @@ version 4\ntranslations xz\nrotations y\nrangesQ -0.70 2.30\n- -1 1\n+ -3 3\n-pi pi\nmass 1\ninertia\n@@ -31,6 +31,7 @@ version 4\nmesh 0 -1... | Python | MIT License | pyomeca/bioptim | Add marker and external force in cube.bioMod |
538,851 | 12.05.2020 16:38:27 | 14,400 | 6aed5675751d4c1bc325fe7788f2ba0c3236e44f | Started to fix external forces | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/biorbd_interface.py",
"new_path": "biorbd_optim/biorbd_interface.py",
"diff": "@@ -30,9 +30,9 @@ class BiorbdInterface:\nsv_over_phase = []\nfor node in range(f_ext.shape[2]):\n- sv = biorbd.VecBiorbdSpatialVector()\n+ sv = []\nfor idx in range(f_... | Python | MIT License | pyomeca/bioptim | Started to fix external forces |
538,857 | 12.05.2020 19:03:42 | 14,400 | ca20f67e4fa5cc796c71cfbc1b231d02b182ba56 | New keys nbContact and additional_plots in nlp dictionnaries | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -56,6 +56,9 @@ class ProblemType:\n[\"contact_forces\"],\n).expand()\n+ nlp[\"nbContact\"] = nlp[\"model\"].nbContacts()\n+ nlp[\"additional_plots\"] = {\"contact_forces\": ... | Python | MIT License | pyomeca/bioptim | New keys nbContact and additional_plots in nlp dictionnaries |
538,865 | 13.05.2020 09:37:00 | 14,400 | da8a5d61c5daddb272dc3ac099267aea9654c87f | Use nbQ to increase bound | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"new_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"diff": "@@ -97,6 +97,7 @@ def prepare_ocp(\n# Problem parameters\ntorque_min, torque_max, torque_init = -100, 100, 0\nactivation... | Python | MIT License | pyomeca/bioptim | Use nbQ to increase bound |
538,865 | 13.05.2020 09:38:30 | 14,400 | 7136e60a9092bbf7f158f53b1ed824e1d823442f | Adjusted muscle parameters | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_with_contact/2segments_4dof_2contacts_1muscle.bioMod",
"new_path": "examples/muscle_driven_with_contact/2segments_4dof_2contacts_1muscle.bioMod",
"diff": "@@ -69,10 +69,10 @@ endmusclegroup\nType hillthelen\nmusclegroup musclegroup1\nOri... | Python | MIT License | pyomeca/bioptim | Adjusted muscle parameters |
538,865 | 13.05.2020 10:09:31 | 14,400 | 6d6aa68523de6b67dd38991f6f347b1d8b132710 | Added test for contact forces tracking | [
{
"change_type": "MODIFY",
"old_path": "tests/test_muscle_tracking.py",
"new_path": "tests/test_muscle_tracking.py",
"diff": "@@ -25,6 +25,14 @@ spec = importlib.util.spec_from_file_location(\nmuscle_excitations_tracker = importlib.util.module_from_spec(spec)\nspec.loader.exec_module(muscle_excitati... | Python | MIT License | pyomeca/bioptim | Added test for contact forces tracking |
538,865 | 14.05.2020 12:07:04 | 14,400 | a0de9c873c8eae75d4b13b04a83196fbbbed37e5 | Added muscle excitation with contact as problem type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -215,3 +215,51 @@ class ProblemType:\n[\"contact_forces\"],\n).expand()\nProblemType.__configure_contact(nlp)\n+\n+ @staticmethod\n+ def muscle_excitations_and_torque_driven... | Python | MIT License | pyomeca/bioptim | Added muscle excitation with contact as problem type |
538,865 | 14.05.2020 12:08:09 | 14,400 | d91563194aefb36855a48d86b485cbe799665e03 | Added forward dynamic for muscle excitation with contact | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -122,6 +122,26 @@ class Dynamics:\nreturn vertcat(qdot_reduced, qddot_reduced, muscles_activations_dot)\n@staticmethod\n+ def forward_dynamics_muscle_excitations_and_torque_driven_w... | Python | MIT License | pyomeca/bioptim | Added forward dynamic for muscle excitation with contact |
538,865 | 14.05.2020 12:09:05 | 14,400 | dbc852ad6cd22bbca7b66c692b9e6edb248d61e9 | Added function to get contact forces from forward dynamic with muscle excitation and contact | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -141,6 +141,26 @@ class Dynamics:\nqdot_reduced = nlp[\"q_mapping\"].reduce.map(qdot)\nqddot_reduced = nlp[\"q_dot_mapping\"].reduce.map(qddot)\nreturn vertcat(qdot_reduced, qddot_r... | Python | MIT License | pyomeca/bioptim | Added function to get contact forces from forward dynamic with muscle excitation and contact |
538,865 | 14.05.2020 12:09:33 | 14,400 | d2cf9921890299ec5b58ae97ef3077df553a43bd | Added example using muscle excitation with contact | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/muscle_driven_with_contact/contact_forces_inequality_constraint_muscle_excitations.py",
"diff": "+from matplotlib import pyplot as plt\n+import numpy as np\n+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlPro... | Python | MIT License | pyomeca/bioptim | Added example using muscle excitation with contact |
538,850 | 14.05.2020 13:48:25 | 14,400 | c1b324a926a2237f9097f78c2f72c541cd278ed3 | Creat a test for linear initialization | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -96,3 +96,76 @@ def test_align_marker_on_segment(ode_solver):\n# initial and final controls\nnp.testing.assert_almost_equal(tau[:, 0], np.array([1.61499455, 9.97512191, 2.13907245, 0.89301203... | Python | MIT License | pyomeca/bioptim | Creat a test for linear initialization |
538,850 | 14.05.2020 14:18:23 | 14,400 | fa60a0100bae900e254f192f7c7c1acacb7ce38e | Is it a mistake ? 'path_condtions' file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -58,7 +58,7 @@ class PathCondition(np.ndarray):\nif self.shape[0] != nb_elements:\nraise RuntimeError(\n- f\"Invalid number of {condition_type} ({self.shape[1] }), the... | Python | MIT License | pyomeca/bioptim | Is it a mistake ? 'path_condtions' file |
538,851 | 14.05.2020 17:57:27 | 14,400 | 1a7ec0fb40cfa7f56882a91540a41faf71fc53d3 | Come back to correct vector of spatial vector. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/biorbd_interface.py",
"new_path": "biorbd_optim/biorbd_interface.py",
"diff": "@@ -30,9 +30,10 @@ class BiorbdInterface:\nsv_over_phase = []\nfor node in range(f_ext.shape[2]):\n- sv = []\n+ sv = biorbd.VecBiorbdSpatialVector()\nfor idx in range(f... | Python | MIT License | pyomeca/bioptim | Come back to correct vector of spatial vector. |
538,851 | 14.05.2020 17:58:18 | 14,400 | 757d3c02736ef791e93e7df06081daec2ee15934 | Call all forces in each node. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -17,7 +17,7 @@ class Dynamics:\nif \"external_forces\" in nlp:\ndxdt = MX(nlp[\"nx\"], nlp[\"ns\"])\nfor i, f_ext in enumerate(nlp[\"external_forces\"]):\n- qddot = biorbd.Model.For... | Python | MIT License | pyomeca/bioptim | Call all forces in each node. |
538,851 | 14.05.2020 18:09:34 | 14,400 | 5ec8cfe42513ce9b5d0af8b75d97db80a7c10b05 | WIP 2 externals forces | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/external_forces.py",
"new_path": "examples/torque_driven_ocp/external_forces.py",
"diff": "@@ -35,11 +35,15 @@ def prepare_ocp(biorbd_model_path=\"cube.bioMod\", show_online_optim=False, ode_so\n# Constraints\nconstraints = (\n{\"typ... | Python | MIT License | pyomeca/bioptim | WIP 2 externals forces |
538,850 | 14.05.2020 19:47:31 | 14,400 | 2d2bcf5fc731b07de09cf48852ab557d05215aec | Correction of my mistake - 'test_align' | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -99,12 +99,12 @@ def test_align_marker_on_segment(ode_solver):\n# Load linear_initial_guess\n-PROJECT_FOLDER = Path(__file__).parent / \"..\"\n-spec = importlib.util.spec_from_file_location(\... | Python | MIT License | pyomeca/bioptim | Correction of my mistake - 'test_align' |
538,851 | 15.05.2020 11:09:49 | 14,400 | d722731298dc237bd7154fe1c78542b5a64d9ff0 | finalize biorbd interface | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -8,4 +8,5 @@ from .path_conditions import Bounds, QAndQDotBounds, InitialConditions\nfrom .dynamics import Dynamics\nfrom .mapping import Mapping, BidirectionalMapping\nfrom .optima... | Python | MIT License | pyomeca/bioptim | finalize biorbd interface |
538,851 | 12.05.2020 17:25:44 | 14,400 | 13c00dd60ef4ae656e2ba6a922e33c65c97d7964 | Save parameters of ocp | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -78,10 +78,10 @@ class OptimalControlProgram:\n\"problem_type\": problem_type,\n\"number_shooting_points\": number_shooting_points,\n\"phase_time\": ph... | Python | MIT License | pyomeca/bioptim | Save parameters of ocp |
538,851 | 12.05.2020 17:30:21 | 14,400 | 77395e941592fc0fbba077a36364c1af1f94e959 | save and load in test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -6,8 +6,18 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-\n-from biorbd_optim import Data, OdeSolver, OptimalControlProgram, Bounds, InitialConditions, ... | Python | MIT License | pyomeca/bioptim | save and load in test |
538,851 | 12.05.2020 18:31:01 | 14,400 | 33d9e0d7f55a50fd5e3ff325a3a0e943de688dd3 | Add example of save and load | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -69,7 +69,13 @@ if __name__ == \"__main__\":\n# --- Solve the program --- #\nsol = ocp.solve()\n+ # --- Save the optimal control program and the solution ---... | Python | MIT License | pyomeca/bioptim | Add example of save and load |
538,851 | 15.05.2020 18:43:02 | 14,400 | 7628d2a8016f2a85aee080d02fbfc8c460df9c94 | Example with 2 forces. | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/cube.bioMod",
"new_path": "examples/torque_driven_ocp/cube.bioMod",
"diff": "@@ -31,7 +31,6 @@ version 4\nmesh 0 -1 0\nmesh 1 -1 0\nmesh 1 -1 -1\n- externalforceindex 0\nendsegment\n// Marker on Seg1\n"
},
{
"change_type": "A... | Python | MIT License | pyomeca/bioptim | Example with 2 forces. |
538,851 | 15.05.2020 21:14:51 | 14,400 | c0016d3df6f5832aab119e81aa64c461d754968a | Adds a test for external forces. | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_ocp.py",
"new_path": "tests/test_torque_driven_ocp.py",
"diff": "@@ -103,3 +103,47 @@ def test_multiphase_align_markers(ode_solver):\nnp.testing.assert_almost_equal(tau[1][:, -1], np.array((0.2322581, 9.81, -0.0)))\nnp.testing.assert_a... | Python | MIT License | pyomeca/bioptim | Adds a test for external forces. |
538,851 | 18.05.2020 13:36:10 | 14,400 | 75071156b446880b8e712b9ab42155cd5368254b | Adds tests.py | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -9,4 +9,5 @@ from .dynamics import Dynamics\nfrom .mapping import Mapping, BidirectionalMapping\nfrom .optimal_control_program import OptimalControlProgram\nfrom .biorbd_interface i... | Python | MIT License | pyomeca/bioptim | Adds tests.py |
538,851 | 18.05.2020 13:37:08 | 14,400 | 8ef1c556713b96bba2359cbb89255b0dacbd5713 | Rename "name" to "file_path" | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -396,16 +396,16 @@ class OptimalControlProgram:\n# Solve the problem\nreturn solver.call(arg)\n- def save(self, sol, name):\n- _, ext = os.path.splitex... | Python | MIT License | pyomeca/bioptim | Rename "name" to "file_path" |
538,851 | 18.05.2020 13:38:14 | 14,400 | 08dc6c33722d2a6e040e3ace21e7e7b55e701606 | Fix save and load pb (caused by del of dict) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "from math import inf\n-from copy import copy\n+from copy import deepcopy\nimport pickle\nimport os\n@@ -84,8 +84,8 @@ class OptimalControlProgram:\n\"U_in... | Python | MIT License | pyomeca/bioptim | Fix save and load pb (caused by del of dict) |
538,851 | 18.05.2020 13:39:40 | 14,400 | 39e17d762ea2bee196b59922ed0740851808b240 | File for tools used in some tests (generic name could be more specific). | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "biorbd_optim/tests.py",
"diff": "+import numpy as np\n+\n+from casadi import MX\n+import biorbd\n+\n+from biorbd_optim import (\n+ OptimalControlProgram,\n+ Bounds,\n+ InitialConditions,\n+ BidirectionalMapping,\n+ Mapping,\n+ OdeSolver,\n+)\n+\... | Python | MIT License | pyomeca/bioptim | File for tools used in some tests (generic name could be more specific). |
538,851 | 18.05.2020 13:40:20 | 14,400 | 99184e83e28fc14b9a911b431cc33bfd6a968120 | align : new way to test "save and load" | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -7,7 +7,7 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from biorbd_optim import Data, OdeSolver\n+from biorbd_optim import Data, OdeSolver, Tests\n# Load align_segment_on_... | Python | MIT License | pyomeca/bioptim | align : new way to test "save and load" |
538,851 | 18.05.2020 13:41:05 | 14,400 | 82d2995e594ceb830d824ae68cbad675fd929316 | getting_started : new way to test "save and load" and remove unused modules. | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -6,17 +6,11 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from casadi import MX\n-import biorbd\nfrom biorbd_optim import (\nData,\nOdeSolver,\n- Optima... | Python | MIT License | pyomeca/bioptim | getting_started : new way to test "save and load" and remove unused modules. |
538,851 | 18.05.2020 13:41:28 | 14,400 | d75974f78f120160a8c4749de0cc1fa317282d64 | muscle : new way to test "save and load" | [
{
"change_type": "MODIFY",
"old_path": "tests/test_muscle_driven_ocp.py",
"new_path": "tests/test_muscle_driven_ocp.py",
"diff": "@@ -6,7 +6,7 @@ from pathlib import Path\nimport numpy as np\n-from biorbd_optim import Data\n+from biorbd_optim import Data, Tests\n# Load static_arm\nPROJECT_FOLDER = P... | Python | MIT License | pyomeca/bioptim | muscle : new way to test "save and load" |
538,851 | 18.05.2020 13:42:03 | 14,400 | b2f388e9a62152ce7afbfa70b43ce3d0e70a6a28 | symetrical : new way to test "save and load" | [
{
"change_type": "MODIFY",
"old_path": "tests/test_symmetrical_torque_driven_ocp.py",
"new_path": "tests/test_symmetrical_torque_driven_ocp.py",
"diff": "@@ -7,7 +7,7 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from biorbd_optim import Data, OdeSolver\n+from biorbd_optim import ... | Python | MIT License | pyomeca/bioptim | symetrical : new way to test "save and load" |
538,851 | 18.05.2020 13:42:34 | 14,400 | d24066caa7b2f12bf3d54bad1fc71e5c0134dd59 | torque without contact : new way to test "save and load" | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_ocp.py",
"new_path": "tests/test_torque_driven_ocp.py",
"diff": "@@ -7,7 +7,7 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from biorbd_optim import Data, OdeSolver\n+from biorbd_optim import Data, OdeSolver, Tests\n... | Python | MIT License | pyomeca/bioptim | torque without contact : new way to test "save and load" |
538,851 | 18.05.2020 13:42:59 | 14,400 | 7b4ac45a8a140921107e1c63948f4a8a899315c0 | torque with contact : new way to test "save and load" | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_with_contact_ocp.py",
"new_path": "tests/test_torque_driven_with_contact_ocp.py",
"diff": "@@ -11,7 +11,7 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from biorbd_optim import Data, OdeSolver\n+from biorbd_optim imp... | Python | MIT License | pyomeca/bioptim | torque with contact : new way to test "save and load" |
538,851 | 19.05.2020 14:10:15 | 14,400 | d7ff24349d8ab575bf6ac8175417f73163e47247 | prepare merge part2 | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -206,3 +206,48 @@ def test_custom_constraint_align_markers(ode_solver):\n# initial and final controls\nnp.testing.assert_almost_equal(tau[:, 0], np.array((1.45161288102145... | Python | MIT License | pyomeca/bioptim | prepare merge part2 |
538,851 | 19.05.2020 15:55:52 | 14,400 | fa5203bcd46ca5577554e0a4f1d947f6a2233986 | Move test.py file and rename to utils | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -9,5 +9,4 @@ from .dynamics import Dynamics\nfrom .mapping import Mapping, BidirectionalMapping\nfrom .optimal_control_program import OptimalControlProgram\nfrom .biorbd_interface i... | Python | MIT License | pyomeca/bioptim | Move test.py file and rename to utils |
538,851 | 19.05.2020 15:56:33 | 14,400 | 43fccb096838379f36e0dc2b5b44d037e1c926a2 | Add option to save numpy | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -15,6 +15,7 @@ from .objective_functions import Objective, ObjectiveFunction\nfrom .plot import OnlineCallback\nfrom .integrator import RK4\nfrom .bior... | Python | MIT License | pyomeca/bioptim | Add option to save numpy |
538,851 | 19.05.2020 16:01:20 | 14,400 | e3d83707f389b76e882267fc62b969b36a1988c1 | max iter = 1000 | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -371,7 +371,7 @@ class OptimalControlProgram:\nif solver == \"ipopt\":\noptions_default = {\n\"ipopt.tol\": 1e-6,\n- \"ipopt.max_iter\": 2,\n+ \"ipopt.... | Python | MIT License | pyomeca/bioptim | max iter = 1000 |
538,851 | 19.05.2020 16:02:06 | 14,400 | 120cb4b44c524ee8311c131003aa023cb2dcd148 | rename an option in save() | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -397,12 +397,12 @@ class OptimalControlProgram:\n# Solve the problem\nreturn solver.call(arg)\n- def save(self, sol, file_path, as_numpy=False):\n+ def... | Python | MIT License | pyomeca/bioptim | rename an option in save() |
538,851 | 19.05.2020 19:30:03 | 14,400 | c1b7f6154e2a3810030093ed3e1084a45807b094 | Fix problem to call utils in test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -7,7 +7,7 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from tests import Utils\n+from .utils import Utils\nfrom biorbd_optim import Data, OdeSolver\n# Load align_segment_o... | Python | MIT License | pyomeca/bioptim | Fix problem to call utils in test |
538,851 | 19.05.2020 19:39:29 | 14,400 | 7a65aa726fd85417bc0e1397f39f92ba3eb3d28e | fix problem (part 2) | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -7,7 +7,7 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from .utils import Utils\n+from utils import Utils\nfrom biorbd_optim import Data, OdeSolver\n# Load align_segment_o... | Python | MIT License | pyomeca/bioptim | fix problem (part 2) |
538,851 | 19.05.2020 19:52:01 | 14,400 | 78b12d204e8acbf4a262cb8ea5b70869c90e7280 | adapt extension | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "@@ -17,7 +17,7 @@ class Utils:\n@staticmethod\ndef save_and_load(sol, ocp, file_path, test_solve_of_loaded=False):\nocp.save(sol, file_path)\n- ocp_load, sol_load = OptimalControlProgram.load(file_path=fi... | Python | MIT License | pyomeca/bioptim | adapt extension |
538,851 | 19.05.2020 20:20:24 | 14,400 | dad685566bfe6b45998fe15c8dff32ef91e6409a | Remove .bo after test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -54,7 +54,7 @@ def test_align_segment_on_rt(ode_solver):\nnp.testing.assert_almost_equal(tau[:, -1], np.array([-1.61910771e-23, 9.81, -66.9866667, -66.9866667]))\n# save and load\n- Utils.sav... | Python | MIT License | pyomeca/bioptim | Remove .bo after test |
538,851 | 19.05.2020 20:24:59 | 14,400 | b2ec39925f94ad1847e28a3193c92bed3f01754c | remove line used in debug | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -401,7 +401,6 @@ class OptimalControlProgram:\n_, ext = os.path.splitext(file_path)\nif ext == \"\":\nfile_path = file_path + \".bo\"\n-\nwith open(fil... | Python | MIT License | pyomeca/bioptim | remove line used in debug |
538,851 | 20.05.2020 16:11:12 | 14,400 | 504fa997b0a70ebf5193322feb520da59d759ccf | Adapt save for biorbd-viz | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -391,13 +391,14 @@ class OptimalControlProgram:\n# Solve the problem\nreturn solver.call(arg)\n- def save(self, sol, file_path, to_numpy=False):\n+ def... | Python | MIT License | pyomeca/bioptim | Adapt save for biorbd-viz |
538,852 | 21.05.2020 11:36:15 | 14,400 | c74f57b997ce2d99e66a116e37484eeabe0f88e0 | Added the capability to isolate q qdot and tau when constructing the dynamics | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -108,6 +108,26 @@ class Dynamics:\nreturn cs.getForce().to_mx()\n+ @staticmethod\n+ def forward_dynamics_muscle_excitations_driven(states, controls, nlp):\n+ q, qdot, tau = Dynamics... | Python | MIT License | pyomeca/bioptim | Added the capability to isolate q qdot and tau when constructing the dynamics |
538,852 | 21.05.2020 11:58:19 | 14,400 | 12052d95448f0b444e4c3db125ca820136b0d9a8 | Made the test working when using muscle_excitation without residual torques | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -11,7 +11,7 @@ class Dynamics:\n:param nlp: An OptimalControlProgram class\n:return: Vertcat of derived states.\n\"\"\"\n- q, qdot, tau = Dynamics.__dispatch_data(states, controls, ... | Python | MIT License | pyomeca/bioptim | Made the test working when using muscle_excitation without residual torques |
538,843 | 21.05.2020 17:33:24 | 14,400 | b1cc6849bb332e55ef7f06a8ee4d1272854dc503 | First mods for parallelization in biorbdOptim. Added a pendulum example for illustration. Modified original pendulum example for emphasis on the outcomes of parallelizing | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "from math import inf\nfrom enum import Enum\n-from casadi import vertcat, sum1\n+from casadi import vertcat, sum1, horzcat\nfrom .enums import Instant, InterpolationType\nfrom .p... | Python | MIT License | pyomeca/bioptim | First mods for parallelization in biorbdOptim. Added a pendulum example for illustration. Modified original pendulum example for emphasis on the outcomes of parallelizing |
538,857 | 22.05.2020 12:06:58 | 14,400 | ac45a9146523b1535a87bfe08ee575307a3d0c03 | Fixing plot multiPhases | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -146,12 +146,7 @@ class OptimalControlProgram:\nself.__add_to_nlp(\"plot_mappings\", reshaped_plot_mappings, False)\nself.__add_to_nlp(\"problem_type\"... | Python | MIT License | pyomeca/bioptim | Fixing plot multiPhases |
538,857 | 22.05.2020 12:39:37 | 14,400 | a9fc39228a96ba040e842a4d75ab0ddc4ddd48b8 | Added torque activation dynamics | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -52,6 +52,17 @@ class Dynamics:\nreturn cs.getForce().to_mx()\n+ @staticmethod\n+ def forward_dynamics_torque_activations_driven_with_contact(states, controls, nlp):\n+ q, qdot, tor... | Python | MIT License | pyomeca/bioptim | Added torque activation dynamics |
538,857 | 22.05.2020 14:01:58 | 14,400 | f9c675e60c1705d0bf27cb1ef792e33b44852910 | Torque activations driven (without contact) added | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -52,6 +52,17 @@ class Dynamics:\nreturn cs.getForce().to_mx()\n+ @staticmethod\n+ def forward_dynamics_torque_activations_driven(states, controls, nlp):\n+ q, qdot, torque_act = Dyn... | Python | MIT License | pyomeca/bioptim | Torque activations driven (without contact) added |
538,857 | 22.05.2020 15:11:05 | 14,400 | 976771a4ec420b2c8b904881a5e5b5b988f4a20b | Example & bioMod for torque activations driven added | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_activations_driven/align_markers_torque_act.py",
"diff": "+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlProgram,\n+ ProblemType,\n+ Objective,\n+ Constraint,\n+ Bounds,\n+ QAndQDotBounds,\n+ InitialC... | Python | MIT License | pyomeca/bioptim | Example & bioMod for torque activations driven added |
538,858 | 22.05.2020 15:40:36 | 14,400 | 195ddfa8221efc853d06a39d763a47faa35e9cb5 | Removed ''i'' from penalities and penality | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -105,8 +105,8 @@ class OptimalControlProgram:\nself.__add_to_nlp(\"phase_idx\", [i for i in range(self.nb_phases)], False)\n# Prepare some variables\n-... | Python | MIT License | pyomeca/bioptim | Removed ''i'' from penalities and penality |
538,857 | 22.05.2020 15:47:13 | 14,400 | 291cf71612159d74551ca4b0ff185e144765342d | Example and biomod for torque_activation_driven_with_contact | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_activations_driven_with_contact/2segments_4dof_2contacts_with_actuators.bioMod",
"diff": "+version 4\n+\n+// Seg0\n+segment Seg0\n+ translations yz\n+ rotations x\n+ ranges -10 10\n+ -10 10\n+ -2 1\n+ mass 12\n+ inertia\n+ 0.15 0... | Python | MIT License | pyomeca/bioptim | Example and biomod for torque_activation_driven_with_contact |
538,857 | 22.05.2020 15:48:15 | 14,400 | 427691bec515c9d4eed5b6518ca147ec678cc1c5 | Bounds for controls fixed | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_activations_driven_with_contact/maximize_predicted_height_CoM_with_actuators.py",
"new_path": "examples/torque_activations_driven_with_contact/maximize_predicted_height_CoM_with_actuators.py",
"diff": "@@ -18,7 +18,7 @@ def prepare_ocp(model_pa... | Python | MIT License | pyomeca/bioptim | Bounds for controls fixed |
538,857 | 22.05.2020 16:01:52 | 14,400 | 6c3150a5b8a68f960e72bb47baada1de9da148c3 | Fixed torque activations bounds | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_activations_driven_with_contact/2segments_4dof_2contacts_with_actuators.bioMod",
"new_path": "examples/torque_activations_driven_with_contact/2segments_4dof_2contacts_with_actuators.bioMod",
"diff": "@@ -22,37 +22,37 @@ endsegment\ntype Constan... | Python | MIT License | pyomeca/bioptim | Fixed torque activations bounds |
538,851 | 25.05.2020 10:59:54 | 14,400 | 62f692825b50f898372b7dd2ab54c597e2b13951 | use a variable "path_file" | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "@@ -17,8 +17,9 @@ from biorbd_optim import (\nclass TestUtils:\n@staticmethod\ndef save_and_load(sol, ocp, test_solve_of_loaded=False):\n- ocp.save(sol, \"test.bo\")\n- ocp_load, sol_load = OptimalControl... | Python | MIT License | pyomeca/bioptim | use a variable "path_file" |
538,851 | 25.05.2020 11:00:16 | 14,400 | b67ca226e3d137ae315105e07dbb0c0786253513 | create directory if necessary | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -501,6 +501,10 @@ class OptimalControlProgram:\n_, ext = os.path.splitext(file_path)\nif ext == \"\":\nfile_path = file_path + \".bo\"\n+ dir, _ = os.p... | Python | MIT License | pyomeca/bioptim | create directory if necessary |
538,857 | 25.05.2020 15:31:40 | 14,400 | 27b050748d2a6fa816156b1b0538077dc42205a3 | Started to develop time_constraint | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -201,6 +201,7 @@ class Constraint(Enum):\nCUSTOM = (PenaltyType.CUSTOM,)\nCONTACT_FORCE_INEQUALITY = (ConstraintFunction.Functions.contact_force_inequality,)\nNON_SLIPPING = (... | Python | MIT License | pyomeca/bioptim | Started to develop time_constraint |
538,851 | 25.05.2020 16:08:07 | 14,400 | 5c8f6a6133aa82c9128a718dde6dcb1348691d00 | Use dict to call get_data, it's better to save all thinks in one file.bo | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -497,7 +497,7 @@ class OptimalControlProgram:\n# Solve the problem\nreturn solver.call(arg)\n- def save(self, sol, file_path, to_numpy=False, nb_frames... | Python | MIT License | pyomeca/bioptim | Use dict to call get_data, it's better to save all thinks in one file.bo |
538,857 | 25.05.2020 20:39:14 | 14,400 | 2754e6cfc6a9d8182d80c41a7c0dded02e049bc9 | Time constraint finalized | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -92,6 +92,16 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n**parameters\n)\n+ @staticmethod\n+ def time_constraint(constraint_type, ocp, nlp, t, x, u, **parameters):\... | Python | MIT License | pyomeca/bioptim | Time constraint finalized |
538,852 | 26.05.2020 11:18:14 | 14,400 | baa2783d122c1ba3095bc02db9ea3472ed9ffa96 | Add muscle activation (no torque) as dynamics | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -108,6 +108,26 @@ class Dynamics:\nreturn cs.getForce().to_mx()\n+ @staticmethod\n+ def forward_dynamics_muscle_activations_driven(states, controls, nlp):\n+ nq = nlp[\"q_mapping\"]... | Python | MIT License | pyomeca/bioptim | Add muscle activation (no torque) as dynamics |
538,865 | 26.05.2020 11:32:14 | 14,400 | fcd5efa4e2b980d5976cba9fc1ebdc6692d41d58 | Range between 0-1 for plot muscles | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -133,6 +133,8 @@ class PlotOcp:\naxes[k].set_title(self.plot_func[variable][-1].legend[mapping[k]])\nax.grid(color=\"k\", linestyle=\"--\", linewidth=0.5)\nax.set_xlim(0, self.t[-1][-1])\n+... | Python | MIT License | pyomeca/bioptim | Range between 0-1 for plot muscles |
538,852 | 26.05.2020 12:46:05 | 14,400 | 85f040f6cd025b0a47f145171dc7f9fb43d34ea9 | Include torque / no torque | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"new_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"diff": "@@ -18,7 +18,7 @@ from biorbd_optim import (\n)\n-def generate_data(biorbd_model, final_time, nb_shooting):\n+def genera... | Python | MIT License | pyomeca/bioptim | Include torque / no torque |
538,852 | 26.05.2020 12:51:55 | 14,400 | b0c1cf22b62751f8214a978e69df3b8cf022bcef | Muscle_activations_tracker.py done | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"new_path": "examples/muscle_driven_ocp/muscle_activations_tracker.py",
"diff": "@@ -130,8 +130,11 @@ def prepare_ocp(\n# Add objective functions\nobjective_functions = [\n{\"type\": Objective.Lagrange... | Python | MIT License | pyomeca/bioptim | Muscle_activations_tracker.py done |
538,851 | 26.05.2020 15:32:20 | 14,400 | c070edaeb7020088180a2354b852df8390a79e85 | Adds a function to print variable optimisation from a .bo | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -505,12 +505,12 @@ class OptimalControlProgram:\nif dir != \"\" and not os.path.isdir(dir):\nos.makedirs(dir)\n- with open(file_path, \"wb\") as file:\... | Python | MIT License | pyomeca/bioptim | Adds a function to print variable optimisation from a .bo |
538,851 | 26.05.2020 17:57:29 | 14,400 | a93c7f51c3209f1f9b2d771bb2062de2a17acf1e | Adds correct extension. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -498,19 +498,23 @@ class OptimalControlProgram:\nreturn solver.call(arg)\ndef save(self, sol, file_path, to_numpy=False, **parameters):\n- _, ext = os.... | Python | MIT License | pyomeca/bioptim | Adds correct extension. |
538,857 | 26.05.2020 20:23:39 | 14,400 | 7a2d5f6c146180c134c4b394acc26406b0afd200 | Actuators added | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/cube.bioMod",
"new_path": "examples/torque_driven_ocp/cube.bioMod",
"diff": "@@ -58,3 +58,57 @@ endsegment\nparent ground\nposition 1 0 2\nendmarker\n+\n+// Markers on ground\n+ marker m1\n+ parent ground\n+ position 1 0 0\n+ endmark... | Python | MIT License | pyomeca/bioptim | Actuators added |
538,857 | 26.05.2020 20:24:47 | 14,400 | 0dea8c55f790d0e7a75778162988fd858d2485db | Actuators added in .bioMod | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_with_contact/2segments_4dof_2contacts.bioMod",
"new_path": "examples/torque_driven_with_contact/2segments_4dof_2contacts.bioMod",
"diff": "@@ -17,6 +17,44 @@ segment Seg0\nmesh 0 0 -0.5\nendsegment\n+// Actuators Seg0\n+ actuator Seg0\n+... | Python | MIT License | pyomeca/bioptim | Actuators added in .bioMod |
538,857 | 26.05.2020 20:25:18 | 14,400 | 823f5eb518180b0fd64c3debf8b1cab5c1e1574c | Test of align_markers.py with actuators added | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_ocp.py",
"new_path": "tests/test_torque_driven_ocp.py",
"diff": "@@ -25,6 +25,7 @@ def test_align_markers(ode_solver):\nbiorbd_model_path=str(PROJECT_FOLDER) + \"/examples/torque_driven_ocp/cube.bioMod\",\nnumber_shooting_points=30,\nf... | Python | MIT License | pyomeca/bioptim | Test of align_markers.py with actuators added |
538,857 | 26.05.2020 20:25:43 | 14,400 | 9c527095227e25909735ff3614d2ca2d25a55beb | Test of maximizing height of CoM with actuators added | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_with_contact_ocp.py",
"new_path": "tests/test_torque_driven_with_contact_ocp.py",
"diff": "@@ -79,6 +79,42 @@ def test_maximize_predicted_height_CoM(ode_solver):\n# save and load\nTestUtils.save_and_load(sol, ocp, False)\n+@pytest.mark... | Python | MIT License | pyomeca/bioptim | Test of maximizing height of CoM with actuators added |
538,857 | 26.05.2020 20:26:21 | 14,400 | 3ee5f4c873ea81e1aefc00176020802b08ef0468 | Cleaning of former and now useless examples and associated .bioMod | [
{
"change_type": "DELETE",
"old_path": "examples/torque_activations_driven/align_markers_torque_act.py",
"new_path": null,
"diff": "-import biorbd\n-\n-from biorbd_optim import (\n- Instant,\n- OptimalControlProgram,\n- ProblemType,\n- Objective,\n- Constraint,\n- Bounds,\n- QAndQDotBounds,\n- Initi... | Python | MIT License | pyomeca/bioptim | Cleaning of former and now useless examples and associated .bioMod |
538,851 | 27.05.2020 10:04:17 | 14,400 | 6fd4c00be81d5dc7f273832a615383ae354dc70c | Better gestion of .bo and .bob
IF you give correct extension in file_path, you don't have to specify to_numpy, however, if to_numpy is not compatible with extension given, it raises un error | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -497,20 +497,31 @@ class OptimalControlProgram:\n# Solve the problem\nreturn solver.call(arg)\n- def save(self, sol, file_path, to_numpy=False, **param... | Python | MIT License | pyomeca/bioptim | Better gestion of .bo and .bob
IF you give correct extension in file_path, you don't have to specify to_numpy, however, if to_numpy is not compatible with extension given, it raises un error |
538,851 | 27.05.2020 10:04:30 | 14,400 | 5db671334f788512ef99758b63675781d28d1825 | Adapt pendulum | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -72,7 +72,7 @@ if __name__ == \"__main__\":\nprint(f\"Time to solve : {toc}sec\")\n# --- Save the optimal control program and the solution --- #\n- ocp.save(... | Python | MIT License | pyomeca/bioptim | Adapt pendulum |
538,857 | 27.05.2020 12:20:39 | 14,400 | 50c274ae24c260687d63115aedaa0a406ab74f14 | time constraint exemple enhanced | [
{
"change_type": "MODIFY",
"old_path": "examples/optimal_time_ocp/time_constraint.py",
"new_path": "examples/optimal_time_ocp/time_constraint.py",
"diff": "@@ -13,7 +13,7 @@ from biorbd_optim import (\n)\n-def prepare_ocp(biorbd_model_path, final_time, number_shooting_points):\n+def prepare_ocp(bior... | Python | MIT License | pyomeca/bioptim | time constraint exemple enhanced |
538,857 | 27.05.2020 12:21:15 | 14,400 | a21dceacf33d85b9253b7f8bdf98373d4690db3b | Test for time constraint added | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -89,7 +89,7 @@ def test_pendulum_min_time_lagrange(ode_solver):\n# Check constraints\ng = np.array(sol[\"g\"])\nnp.testing.assert_equal(g.shape, (40, 1))\n- np.testing.assert_al... | Python | MIT License | pyomeca/bioptim | Test for time constraint added |
538,857 | 27.05.2020 15:35:33 | 14,400 | 703df178194adf81aade0701b30f28bdd131d2e4 | Changed name of new tests | [
{
"change_type": "MODIFY",
"old_path": "tests/test_torque_driven_ocp.py",
"new_path": "tests/test_torque_driven_ocp.py",
"diff": "@@ -136,7 +136,7 @@ def test_align_markers_changing_constraints():\nTestUtils.save_and_load(sol, ocp, True)\n@pytest.mark.parametrize(\"ode_solver\", [OdeSolver.RK])\n-de... | Python | MIT License | pyomeca/bioptim | Changed name of new tests |
538,855 | 27.05.2020 16:45:12 | 14,400 | 0e0fa7606d898918ab0ed1c4436f1a6318d933dd | added select RT objective | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -3,6 +3,7 @@ from math import inf\nimport numpy as np\nimport biorbd\n+import casadi\nfrom .enums import Instant, Axe, PlotType\nfrom .mapping import Mapping\n@@ -41,18 +42,38 @@ clas... | Python | MIT License | pyomeca/bioptim | added select RT objective |
538,865 | 27.05.2020 17:18:15 | 14,400 | 3777121483d0354f1e44bb09e844cbc151ac31c9 | Changed name for muscle activation and torque driven with contact | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -72,7 +72,7 @@ class Dynamics:\nreturn vertcat(qdot_reduced, qddot_reduced)\n@staticmethod\n- def forward_dynamics_torque_muscle_driven_with_contact(states, controls, nlp):\n+ def f... | Python | MIT License | pyomeca/bioptim | Changed name for muscle activation and torque driven with contact |
538,851 | 28.05.2020 09:31:30 | 14,400 | c8aa8ef27dfb82f33728cb19319cc299d38b12f2 | Split save in 2 functions (.bo and .bob) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -497,32 +497,31 @@ class OptimalControlProgram:\n# Solve the problem\nreturn solver.call(arg)\n- def save(self, sol, file_path, to_numpy=(), **paramete... | Python | MIT License | pyomeca/bioptim | Split save in 2 functions (.bo and .bob) |
538,855 | 28.05.2020 14:18:39 | 14,400 | 160d64b20e1438be20f584a4f0ecadabbccd16b9 | Corrections on minimize_markers_displacement
Made function more unified, corrected minimize_markers_velocity and added example. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -42,38 +42,37 @@ class PenaltyFunctionAbstract:\npenalty_type._add_to_penalty(ocp, nlp, val, **extra_param)\n@staticmethod\n- def minimize_markers_displacement(penalty_type, ocp, nlp,... | Python | MIT License | pyomeca/bioptim | Corrections on minimize_markers_displacement
Made function more unified, corrected minimize_markers_velocity and added example. |
538,851 | 28.05.2020 15:54:50 | 14,400 | 0358c86e786fdf54afb35733b54773d744f4a8fd | add test of save_get_data | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "@@ -18,7 +18,9 @@ class TestUtils:\n@staticmethod\ndef save_and_load(sol, ocp, test_solve_of_loaded=False):\nfile_path = \"test.bo\"\n+ file_path_bob = \"test.bob\"\nocp.save(sol, file_path)\n+ ocp.save_g... | Python | MIT License | pyomeca/bioptim | add test of save_get_data |
538,851 | 28.05.2020 16:17:16 | 14,400 | 3d1013d216ce6a2bfaeab987e2e7a48e952db08d | Compare get_data before/after save | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "import numpy as np\nimport os\n+import pickle\nfrom casadi import MX\nimport biorbd\nfrom biorbd_optim import (\nOptimalControlProgram,\n+ Data,\nBounds,\nInitialConditions,\nBidirectionalMapping,\n@@ -18... | Python | MIT License | pyomeca/bioptim | Compare get_data before/after save |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.