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,841 | 09.04.2021 10:53:39 | -7,200 | 49b9e0c07694e3f9d552e3690ab1d1af80cb9da8 | Display the number of shooting nodes for each phase | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -858,7 +858,6 @@ class OptimalControlProgram:\nelse:\ng.node(name='param_0', label=f\"No parameter set\")\n-\nfor phase_idx in range(n_... | Python | MIT License | pyomeca/bioptim | Display the number of shooting nodes for each phase |
538,841 | 09.04.2021 10:54:23 | -7,200 | da7b4a7237e992aee2e0438de5670bb8063eda5f | Add an example using print_ocp_structure() in example_external_forces.py | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/example_external_forces.py",
"new_path": "examples/getting_started/example_external_forces.py",
"diff": "@@ -114,6 +114,9 @@ if __name__ == \"__main__\":\nocp = prepare_ocp()\n+ # --- Print ocp structure --- #\n+ ocp.print_ocp_structur... | Python | MIT License | pyomeca/bioptim | Add an example using print_ocp_structure() in example_external_forces.py |
538,843 | 09.04.2021 15:11:03 | -7,200 | 9166209ec165c4112aa62eda8df65f722896edef | added inf_pr and inf_du in ipopt_interface | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/ipopt_interface.py",
"new_path": "bioptim/interfaces/ipopt_interface.py",
"diff": "@@ -135,6 +135,8 @@ class IpoptInterface(SolverInterface):\nself.out = {\"sol\": solver.call(self.ipopt_limits)}\nself.out[\"sol\"][\"time_tot\"] = time() - t... | Python | MIT License | pyomeca/bioptim | added inf_pr and inf_du in ipopt_interface |
538,841 | 21.04.2021 17:10:41 | -7,200 | 29338a24ffa118cc089d3f47d79800d4c34fb475 | Remove old version of structure_graph() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -756,7 +756,7 @@ class OptimalControlProgram:\nreturn (mayer_str)\ndef parameters_to_str(param: Parameter):\n- parameter_str_guess = \"... | Python | MIT License | pyomeca/bioptim | Remove old version of structure_graph() |
538,841 | 12.04.2021 11:51:51 | -7,200 | 7904315d8ffe662629aa3100e646056408fdfa35 | Display parameters for each nlp | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -770,18 +770,33 @@ class OptimalControlProgram:\nparameter_str_min_bounds += f\"{bound[i]} \"\nreturn parameter_str_guess, parameter_st... | Python | MIT License | pyomeca/bioptim | Display parameters for each nlp |
538,841 | 12.04.2021 14:11:16 | -7,200 | 61e00fb2b6151d1a64d4dd9d9cbd6c5a667429f7 | Display model name for each nlp | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -785,7 +785,7 @@ class OptimalControlProgram:\nparameter_str_min_bounds += f\"{bound[i]} \"\nreturn parameter_str_guess, parameter_str_... | Python | MIT License | pyomeca/bioptim | Display model name for each nlp |
538,841 | 12.04.2021 14:16:56 | -7,200 | 4d1070e9e870ca6f2df4121711eea18668da5f85 | Print the number of shooting nodes for each nlp to console | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -802,6 +802,7 @@ class OptimalControlProgram:\nprint(f\"**********\")\nprint(f\"PHASE {phase_idx}\")\nprint(f\"MODEL: {ocp.original_val... | Python | MIT License | pyomeca/bioptim | Print the number of shooting nodes for each nlp to console |
538,841 | 12.04.2021 14:28:40 | -7,200 | a1caf593a583b89a681c802ce71806dc30cb411b | Display phase duration on graph | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -836,7 +836,10 @@ class OptimalControlProgram:\ng.node(f'dynamics_&_ode_{phase_idx}', f'''<\n<TABLE BORDER=\"0\" CELLBORDER=\"1\" CELLS... | Python | MIT License | pyomeca/bioptim | Display phase duration on graph |
538,841 | 12.04.2021 14:31:08 | -7,200 | 2f6675879309bbb6894c45a2facb7e651a07e640 | Print phase duration to console | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -802,6 +802,7 @@ class OptimalControlProgram:\nprint(f\"**********\")\nprint(f\"PHASE {phase_idx}\")\nprint(f\"MODEL: {ocp.original_val... | Python | MIT License | pyomeca/bioptim | Print phase duration to console |
538,841 | 12.04.2021 14:37:17 | -7,200 | 3952bffbe44d0621983469d399af3d11aeaeb38e | Added case Lagrange not set | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -886,12 +886,20 @@ class OptimalControlProgram:\ng.node(name=f'param_{phase_idx}0', label=f\"No parameter set\")\nlagrange_str = lagran... | Python | MIT License | pyomeca/bioptim | Added case Lagrange not set |
538,841 | 13.04.2021 14:03:31 | -7,200 | 4b9ddfe9852a6428693277508d328e1420be8ea4 | Scaling taken into account for parameter display | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/parameters.py",
"new_path": "bioptim/optimization/parameters.py",
"diff": "@@ -269,18 +269,35 @@ class ParameterList(UniquePerProblemOptionList):\nlist_parameters = [[len(ocp.nlp[nlp_idx].parameters)] for nlp_idx in range(ocp.n_phases)]\nf... | Python | MIT License | pyomeca/bioptim | Scaling taken into account for parameter display |
538,841 | 13.04.2021 15:26:59 | -7,200 | b40b5f1f2ea7da844cca0d83d5dd3aa79bc968cc | Display target for Lagrange/Mayer objectives | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -97,14 +97,20 @@ class ObjectiveList(OptionList):\n@staticmethod\ndef get_nlp_objectives(all_nlp):\n- list_objectives = [[{\"Mayer\": [], \"Lagrange\": []}... | Python | MIT License | pyomeca/bioptim | Display target for Lagrange/Mayer objectives |
538,841 | 14.04.2021 10:12:14 | -7,200 | e9fa6a97ece696d34b2316ea05d122c6bbf435fd | Display target for each constraint + quadratic taken into account | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -101,7 +101,7 @@ class ConstraintList(OptionList):\nfor g in ocp.g:\nlist_global_constraints.append(g[0][\"constraint\"].name)\n- list_constraints = [[{\"Constraints\": []... | Python | MIT License | pyomeca/bioptim | Display target for each constraint + quadratic taken into account |
538,841 | 14.04.2021 10:59:42 | -7,200 | 2e0d69c5ed34c6a1ba1f64119e22c3768e2a4a91 | Quadratic taken into account for parameters | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -801,10 +801,9 @@ class OptimalControlProgram:\nfor i in range(len(bound)):\nparameter_str_min_bounds += f\"{bound[i]} \"\nparameter_st... | Python | MIT License | pyomeca/bioptim | Quadratic taken into account for parameters |
538,841 | 14.04.2021 11:18:59 | -7,200 | f008d7cf0136b5222cd66c38c100eb41bf0a7716 | Get phase transitions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -88,6 +88,14 @@ class PhaseTransitionList(UniquePerPhaseOptionList):\n\"\"\"\nraise NotImplementedError(\"Printing of PhaseTransitionList is not ready yet\")\n+ ... | Python | MIT License | pyomeca/bioptim | Get phase transitions |
538,841 | 14.04.2021 14:53:29 | -7,200 | 1950f1a06201a464ba54d8b405262d857c128fd9 | Display high number of parameter variables | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -787,24 +787,54 @@ class OptimalControlProgram:\ndef parameters_to_str(param: Parameter):\nif param['Size'] > 1:\nparameter_str_guess =... | Python | MIT License | pyomeca/bioptim | Display high number of parameter variables |
538,841 | 15.04.2021 17:14:38 | -7,200 | d1f23dc8459b33c9107e05b03a84d1d16decc795 | Display phase transitions corrected | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -91,9 +91,8 @@ class PhaseTransitionList(UniquePerPhaseOptionList):\n@ staticmethod\ndef get_phase_transitions(ocp):\nlist_phase_transitions = []\n- for g in ocp... | Python | MIT License | pyomeca/bioptim | Display phase transitions corrected |
538,841 | 15.04.2021 17:16:42 | -7,200 | 8c7c1fdf52beefd1414edec81c6648677b73b2c7 | Case "penalty list is None" taken into account | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/parameters.py",
"new_path": "bioptim/optimization/parameters.py",
"diff": "@@ -269,8 +269,9 @@ class ParameterList(UniquePerProblemOptionList):\nlist_parameters = [[len(ocp.nlp[nlp_idx].parameters)] for nlp_idx in range(ocp.n_phases)]\nfor... | Python | MIT License | pyomeca/bioptim | Case "penalty list is None" taken into account |
538,841 | 16.04.2021 11:45:35 | -7,200 | a04a36a511bd3e28983a3ab24953f6a002e28627 | Updated method to display parameters for each constraint | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -101,7 +101,7 @@ class ConstraintList(OptionList):\nfor g in ocp.g:\nlist_global_constraints.append(g[0][\"constraint\"].name)\n- list_constraints = [[{\"Constraints\": []... | Python | MIT License | pyomeca/bioptim | Updated method to display parameters for each constraint |
538,841 | 16.04.2021 15:55:17 | -7,200 | d4746367e103f3b6d311bf1844d668de12f3d44f | Display parameters for Lagrange objective functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -97,7 +97,7 @@ class ObjectiveList(OptionList):\n@staticmethod\ndef get_nlp_objectives(all_nlp):\n- list_objectives = [[{\"Mayer\": [], \"Lagrange\": [], \... | Python | MIT License | pyomeca/bioptim | Display parameters for Lagrange objective functions |
538,841 | 16.04.2021 16:10:46 | -7,200 | 54572de875900ef2d4ce662a3e5c3f6e4a8f062a | Display parameters for Mayer objective functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -803,10 +803,14 @@ class OptimalControlProgram:\nmayer_str += f\"({objective} - \" \\\nf\"{l_nodes[phase_idx][node_idx]['Sliced_target_... | Python | MIT License | pyomeca/bioptim | Display parameters for Mayer objective functions |
538,841 | 16.04.2021 16:55:52 | -7,200 | 6ec463c1ec385167beda34e6800fa845d23f8462 | Updated method to display phase transitions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1074,11 +1074,17 @@ class OptimalControlProgram:\nf'lagrange_{phase_idx}',\ncolor='lightgrey')\n+ with G.subgraph(name=f'cluster_phase... | Python | MIT License | pyomeca/bioptim | Updated method to display phase transitions |
538,841 | 19.04.2021 16:42:49 | -7,200 | feb48c3d0d38d7eda6991acda27d56bd7081de59 | Update display phase transitions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1076,7 +1076,7 @@ class OptimalControlProgram:\nwith G.subgraph(name=f'cluster_phase_transitions') as g:\ng.attr(style='', color='blac... | Python | MIT License | pyomeca/bioptim | Update display phase transitions |
538,841 | 23.04.2021 10:33:28 | -7,200 | 495c5921f6ff7c272ffe8699649148427c189bc4 | Snake casing for dictionary keys (constraints.py) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -101,19 +101,19 @@ class ConstraintList(OptionList):\nfor g in ocp.g:\nlist_global_constraints.append(g[0][\"constraint\"].name)\n- list_constraints = [[{\"Constraints\": ... | Python | MIT License | pyomeca/bioptim | Snake casing for dictionary keys (constraints.py) |
538,841 | 23.04.2021 10:41:05 | -7,200 | d501f0ed1ce5aac0b9c0a2a1d05acaaa139a2b78 | Factor list name (constraints.py) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -101,20 +101,19 @@ class ConstraintList(OptionList):\nfor g in ocp.g:\nlist_global_constraints.append(g[0][\"constraint\"].name)\n- list_constraints = [[{\"constraints\": ... | Python | MIT License | pyomeca/bioptim | Factor list name (constraints.py) |
538,841 | 23.04.2021 11:11:40 | -7,200 | 6954e5ce66ace7a6757f1702e4feeb5ebc477658 | Snake casing for dictionary keys (objective_functions.py) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -97,23 +97,23 @@ class ObjectiveList(OptionList):\n@staticmethod\ndef get_nlp_objectives(all_nlp):\n- list_objectives = [[{\"Mayer\": [], \"Lagrange\": [],... | Python | MIT License | pyomeca/bioptim | Snake casing for dictionary keys (objective_functions.py) |
538,841 | 23.04.2021 11:49:50 | -7,200 | 0c87754056f294ad04e1847e3a383bda2f8a3fcf | Factor list name (objective_functions.py) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -97,24 +97,23 @@ class ObjectiveList(OptionList):\n@staticmethod\ndef get_nlp_objectives(all_nlp):\n- list_objectives = [[{\"mayer\": [], \"lagrange\": [],... | Python | MIT License | pyomeca/bioptim | Factor list name (objective_functions.py) |
538,841 | 23.04.2021 11:58:05 | -7,200 | 16715614ae42e539baad0b8f522a3378ec58ead4 | Condense code (function add_to_penalty in obj_functions.py) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -607,18 +607,11 @@ class ObjectiveFunction:\nThe time between two nodes for the current phase. If the objective is Mayer, dt should be 1\n\"\"\"\n- if pn i... | Python | MIT License | pyomeca/bioptim | Condense code (function add_to_penalty in obj_functions.py) |
538,841 | 23.04.2021 12:09:42 | -7,200 | 6e30d2fd914fbf0bd08440c1c201d255ef31a3b7 | Delete function get_phase_transitions() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -88,14 +88,6 @@ class PhaseTransitionList(UniquePerPhaseOptionList):\n\"\"\"\nraise NotImplementedError(\"Printing of PhaseTransitionList is not ready yet\")\n- ... | Python | MIT License | pyomeca/bioptim | Delete function get_phase_transitions() |
538,841 | 23.04.2021 12:13:37 | -7,200 | 7e80deb846be8851274366ace641e6c46588ec12 | Rename functions get_ocp_constraints() and get_nlp_objectives() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -95,7 +95,7 @@ class ConstraintList(OptionList):\nraise NotImplementedError(\"Printing of ConstraintList is not ready yet\")\n@staticmethod\n- def get_ocp_constraints(ocp)... | Python | MIT License | pyomeca/bioptim | Rename functions get_ocp_constraints() and get_nlp_objectives() |
538,841 | 23.04.2021 14:43:02 | -7,200 | a98af3f2cd15e58310c69cf12f2e99424e2f3ecc | Rename function get_parameters() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1099,7 +1099,7 @@ class OptimalControlProgram:\nlist_constraints = ConstraintList.to_dict(self)[1]\nlist_dynamics = self.__get_dynamic... | Python | MIT License | pyomeca/bioptim | Rename function get_parameters() |
538,841 | 26.04.2021 09:06:56 | -7,200 | 36b6d3788a424c901f4d74274b9d074eb18d5673 | Update method custom of class Functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -902,7 +902,7 @@ class PenaltyFunctionAbstract:\npenalty.max_bound = val[2]\nval = val[1]\n- penalty.type.get_type().add_to_penalty(node.ocp, nodes.nlp, val, penalty)\n+ penalty.t... | Python | MIT License | pyomeca/bioptim | Update method custom of class Functions |
538,841 | 29.04.2021 12:17:35 | -7,200 | f35352fc63030ad799dc4e6b38bee462eac1061c | Debug display objective functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -98,7 +98,7 @@ class ObjectiveList(OptionList):\n@staticmethod\ndef to_dict(all_nlp):\n- list_objectives = [[{\"mayer\": [], \"lagrange\": [], \"quadratic_... | Python | MIT License | pyomeca/bioptim | Debug display objective functions |
538,843 | 03.05.2021 17:02:09 | -7,200 | 946dbada0d1ed50a6e687dbdf6d8d6f293a175b4 | Update link to biorxiv preprint | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1989,7 +1989,7 @@ If you use `bioptim`, we would be grateful if you could cite it as follows:\nyear = {2021},\ndoi = {10.1101/2021.02.27.432868},\npublisher = {Cold Spring Harbor Laboratory},\n- URL = {https://... | Python | MIT License | pyomeca/bioptim | Update link to biorxiv preprint |
538,841 | 07.05.2021 12:56:25 | -7,200 | 1407fcf57f7583c932d7d2705115ca1535c405d4 | Update and reorganize constraints_to_str() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -451,13 +451,13 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nelse:\ng = {\n\"constraint\": penalty,\n- \"node_index\": pn.t[len(pn.nlp.g[penalty.list_index])],\n... | Python | MIT License | pyomeca/bioptim | Update and reorganize constraints_to_str() |
538,841 | 07.05.2021 14:37:34 | -7,200 | f7405011a5bf0ebb645da859d5cb81b6c4b1a1a7 | Update and debug add_to_penalty() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -449,15 +449,20 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n\"target\": penalty.sliced_target,\n}\nelse:\n+ t = []\n+ for i in range(int((pn.tf - pn.t0) / pn.dt... | Python | MIT License | pyomeca/bioptim | Update and debug add_to_penalty() |
538,841 | 07.05.2021 14:39:01 | -7,200 | 0787377ba4b4cd55ae7ddacebb1d24e1efee114b | Delete to_dict() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -93,28 +93,6 @@ class ConstraintList(OptionList):\n# TODO: Print all elements in the console\nraise NotImplementedError(\"Printing of ConstraintList is not ready yet\")\n-... | Python | MIT License | pyomeca/bioptim | Delete to_dict() |
538,841 | 07.05.2021 17:01:28 | -7,200 | 6f30b3056a633404a5dc1823c720166e0dbfe50e | Update and reorganize lagrange_to_str() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -735,8 +735,8 @@ class OptimalControlProgram:\ndef add_param_constraint_to_str(param_dict: ParameterList):\nstr_to_add = \"\"\n- for pa... | Python | MIT License | pyomeca/bioptim | Update and reorganize lagrange_to_str() |
538,841 | 07.05.2021 17:14:33 | -7,200 | ab93938b2119b6a92f0005c651a9fbf5b1e76996 | Update and reorganize mayer_to_str() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -807,6 +807,27 @@ class OptimalControlProgram:\nobjective_idx += 1\nreturn mayer_str\n+ def mayer_to_str_reduced(objective_list: Object... | Python | MIT License | pyomeca/bioptim | Update and reorganize mayer_to_str() |
538,841 | 10.05.2021 14:41:16 | -7,200 | e4572b95dab40f90ef24e48ef8b783f00ec8c701 | Add dispatch_q_qdot() function | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -632,6 +632,34 @@ class DynamicsFunctions:\nbiorbd.Model.ForwardDynamicsConstraintsDirect(nlp.model, q, qdot, tau, cs)\nreturn cs.getForce().to_mx()\n+ @... | Python | MIT License | pyomeca/bioptim | Add dispatch_q_qdot() function |
538,841 | 11.05.2021 11:46:13 | -7,200 | d5f81376fe01ca0427ea0e367681df429f4f2d2c | Debug define_time | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -361,7 +361,7 @@ class OptimalControlProgram:\nself.update_parameters(parameters)\n# Declare the time to optimize\n- self._define_time(... | Python | MIT License | pyomeca/bioptim | Debug define_time |
538,853 | 11.05.2021 14:38:46 | -7,200 | 9c6a207695e9c915ea23b7e0815cf85595f3ece0 | added script for acados install on mac | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "external/acados_install_mac.sh",
"diff": "+#!/bin/bash\n+\n+# Move to the external folder\n+cd ${0%/*}\n+\n+# Download ACADOS if needed\n+if [ ! -f acados/CMakeLists.txt ]; then\n+ echo \"Git submodules not initialized. Initializing\"\n+ git sub... | Python | MIT License | pyomeca/bioptim | added script for acados install on mac |
538,842 | 11.05.2021 20:34:34 | -7,200 | 4a59cac8820599d36680aba9c8f58f1f10bc0efa | Added automatic installation of git and cmake in acados install | [
{
"change_type": "MODIFY",
"old_path": "external/acados_install.sh",
"new_path": "external/acados_install.sh",
"diff": "@@ -31,6 +31,11 @@ if [ -z \"$2\" ]; then\necho \"\"\nfi\n+# Preparing environment\n+if [ \"$CONDA_PREFIX\" ]; then\n+ conda install git cmake -cconda-forge -y\n+fi\n+\n# Move to t... | Python | MIT License | pyomeca/bioptim | Added automatic installation of git and cmake in acados install |
538,853 | 12.05.2021 11:13:42 | -7,200 | a3034b2c78257277b9122aae9d5fdeaca96c32d1 | changed install script for acados on mac. renamed install script fot linux | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "external/acados_install_linux.sh",
"diff": "+#!/bin/bash\n+\n+# Move to the external folder\n+cd ${0%/*}\n+\n+# Download ACADOS if needed\n+if [ ! -f acados/CMakeLists.txt ]; then\n+ echo \"Git submodules not initialized. Initializing\"\n+ git s... | Python | MIT License | pyomeca/bioptim | changed install script for acados on mac. renamed install script fot linux |
538,841 | 12.05.2021 16:56:36 | -7,200 | 5c11c382d74689b7424212067aae15f795e2a581 | Update add_to_penalty() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -427,20 +427,15 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n\"target\": penalty.sliced_target,\n}\nelse:\n- t = []\n- for i in range(int((pn.tf - pn.t0) / pn.dt... | Python | MIT License | pyomeca/bioptim | Update add_to_penalty() |
538,841 | 12.05.2021 17:46:48 | -7,200 | 21261ca69d5a10933eb7af52af81c2ea9d25427d | Update lagrange_to_str() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -787,9 +787,7 @@ class OptimalControlProgram:\ndef add_parameters_to_str(list_constraints: Union[list, ParameterList], string: str):\nf... | Python | MIT License | pyomeca/bioptim | Update lagrange_to_str() |
538,841 | 13.05.2021 16:14:22 | -7,200 | 08a45fbb97a59139e47053d59007927628fd33d3 | Send pn instead of pn.nlp | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -404,7 +404,7 @@ class PenaltyFunctionAbstract:\nsecond_marker_func = nlp.casadi_func[\"markers\"](q)[:, second_marker_idx]\nval = first_marker_func - second_marker_func\n- penalt... | Python | MIT License | pyomeca/bioptim | Send pn instead of pn.nlp |
538,842 | 15.05.2021 14:02:38 | -7,200 | bd4b9045cf260c0d09e4b4ef5b03b85d266f5469 | Added comment on transition node in Readme.md | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1282,6 +1282,7 @@ The accepted values are:\n- INTERMEDIATES: All the nodes but the first and the last one\n- END: The last node\n- ALL: All the nodes\n+- TRANSITION: The last node of a phase and the first node ... | Python | MIT License | pyomeca/bioptim | Added comment on transition node in Readme.md |
538,843 | 17.05.2021 14:51:59 | -7,200 | e4e800082d7154b0941088703074bc22fc45c8a5 | restored option setter in acados interface | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/acados_interface.py",
"new_path": "bioptim/interfaces/acados_interface.py",
"diff": "@@ -618,8 +618,6 @@ class AcadosInterface(SolverInterface):\noptions: dict\nThe dictionary of options\n\"\"\"\n- if not options:\n- return\nif \"acados_dir\... | Python | MIT License | pyomeca/bioptim | restored option setter in acados interface |
538,841 | 17.05.2021 15:06:49 | -7,200 | 024531e3559805920ec8c194e75f20052dd3728b | Update print parameter nodes | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1090,28 +1090,16 @@ class OptimalControlProgram:\nG.node('OCP', shape='Mdiamond')\nG.edge('OCP', f'dynamics_&_ode_{phase_idx}')\n- if ... | Python | MIT License | pyomeca/bioptim | Update print parameter nodes |
538,841 | 17.05.2021 16:18:31 | -7,200 | 58a252fb94e181c05a89c20b572ffc334018c086 | Debug and update mayer_to_str() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -810,34 +810,14 @@ class OptimalControlProgram:\nlagrange_str = add_parameters_to_str(obj.params, lagrange_str)\nreturn lagrange_str\n-... | Python | MIT License | pyomeca/bioptim | Debug and update mayer_to_str() |
538,841 | 18.05.2021 14:14:27 | -7,200 | 65a99ca6e5a6ed794ba3cbb621b87ffeae194697 | Return pn instead of pn.nlp in minimize-qddot() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -525,7 +525,7 @@ class PenaltyFunctionAbstract:\nfor i in range(len(pn) - 1):\nval = pn.nlp.dynamics_func(pn.x[i], pn.u[i], pn.p)[nq + states_idx, :]\n- penalty.type.get_type().ad... | Python | MIT License | pyomeca/bioptim | Return pn instead of pn.nlp in minimize-qddot() |
538,841 | 18.05.2021 14:54:57 | -7,200 | cf66adb2c587158ce57748899f5be686fb32bad3 | Update draw edges between nodes | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1058,34 +1058,33 @@ class OptimalControlProgram:\ng.edges(list_edges)\ng.attr(label=f\"Phase #{phase_idx}\")\n- for idx in range(len(m... | Python | MIT License | pyomeca/bioptim | Update draw edges between nodes |
538,841 | 18.05.2021 15:00:29 | -7,200 | 27d8a8cc01d333f834ad40a2d02607b1b8ff12e5 | Cleaned + added comments (edges between nodes) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1058,6 +1058,7 @@ class OptimalControlProgram:\ng.edges(list_edges)\ng.attr(label=f\"Phase #{phase_idx}\")\n+ # Draw edges between sho... | Python | MIT License | pyomeca/bioptim | Cleaned + added comments (edges between nodes) |
538,841 | 18.05.2021 15:38:55 | -7,200 | 77712994db937570591189262413b6ff6531f6df | Return nodes instead of nlp.nodes in custom() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -930,7 +930,7 @@ class PenaltyFunctionAbstract:\nnlp = nodes[0].nlp if penalty.node != Node.TRANSITION else None\npenalty.type.get_type().add_to_penalty(node[0].ocp, nlp, val, pen... | Python | MIT License | pyomeca/bioptim | Return nodes instead of nlp.nodes in custom() |
538,841 | 18.05.2021 16:22:39 | -7,200 | 7286c94f1d7e56ab85c446d8cd87c1fba53d8d32 | Delete usages of the list of objectives l_nodes + update print_to_terminal() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -792,6 +792,7 @@ class OptimalControlProgram:\nreturn string\ndef lagrange_to_str(objective_list: ObjectiveList):\n+ objective_names = ... | Python | MIT License | pyomeca/bioptim | Delete usages of the list of objectives l_nodes + update print_to_terminal() |
538,841 | 19.05.2021 09:25:47 | -7,200 | ee2a371df2d5f6a39f300061f84da464a54d2f36 | Delete use of print_ocp_structure() in the example | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/example_multiphase.py",
"new_path": "examples/getting_started/example_multiphase.py",
"diff": "@@ -138,9 +138,6 @@ def main():\nocp = prepare_ocp(long_optim=True)\n- # --- Print ocp structure --- #\n- ocp.print_ocp_structure(to_console... | Python | MIT License | pyomeca/bioptim | Delete use of print_ocp_structure() in the example |
538,841 | 19.05.2021 13:17:50 | -7,200 | 290e5af309b93aaf6b2de7529ae424862a3bf87b | Debug display phase transitions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1137,9 +1137,6 @@ class OptimalControlProgram:\nlabel=ocp.phase_transitions[phase_idx].type.name)\ng.attr(label=f\"Phase transitions\"... | Python | MIT License | pyomeca/bioptim | Debug display phase transitions |
538,841 | 19.05.2021 13:32:42 | -7,200 | bb12e23d0319d2628e9cfcfce0fcb6bf7838170b | Delete usages of l_ode and l_dynamics in print_to_console() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -871,8 +871,8 @@ class OptimalControlProgram:\nname = parameter.penalty_list.name\nreturn name\n- def print_console(ocp, l_dynamics: li... | Python | MIT License | pyomeca/bioptim | Delete usages of l_ode and l_dynamics in print_to_console() |
538,841 | 19.05.2021 13:37:30 | -7,200 | b5c480dea65a6049619ba1d6561045e6373b3487 | Delete usages of __get_dynamics() and __get_ode_solver() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -743,18 +743,6 @@ class OptimalControlProgram:\nout = [ocp, sol]\nreturn out\n- def __get_dynamics(self):\n- list_dynamics = []\n- for ... | Python | MIT License | pyomeca/bioptim | Delete usages of __get_dynamics() and __get_ode_solver() |
538,841 | 19.05.2021 13:38:58 | -7,200 | 50bd5d810607d42733f2c7cbd5b26248cae0ca1f | Delete usages of __get_dynamics() and __get_ode_solver() (2) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1128,9 +1128,6 @@ class OptimalControlProgram:\nG.view()\n- list_dynamics = self.__get_dynamics()\n- list_ode = self.__get_ode_solver(... | Python | MIT License | pyomeca/bioptim | Delete usages of __get_dynamics() and __get_ode_solver() (2) |
538,841 | 19.05.2021 14:26:03 | -7,200 | 8d12ec397e5d5e568157b08efaf60b368a2a6121 | Display constraints for each shooting node in console | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -897,10 +897,10 @@ class OptimalControlProgram:\nfor mayer in mayer_objectives:\nif mayer[0] == node_idx:\nprint(mayer[1])\n+ for i in ... | Python | MIT License | pyomeca/bioptim | Display constraints for each shooting node in console |
538,841 | 19.05.2021 15:13:20 | -7,200 | 17683c8b666276c8a95f7f20fe68d55093bae30b | Split draw_graph() into subfunctions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -848,7 +848,7 @@ class OptimalControlProgram:\nmax_bound = [parameter.bounds.max[i][j] * parameter.scaling[i] for i in\nrange(parameter... | Python | MIT License | pyomeca/bioptim | Split draw_graph() into subfunctions |
538,841 | 19.05.2021 16:20:29 | -7,200 | baceab0c76ac64d622020bc7fe59a7f8b4381154 | Split draw_graph() into subfunctions (2) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -944,12 +944,10 @@ class OptimalControlProgram:\ng.node(f'dynamics_&_ode_{phase_idx}', f'''<\n<TABLE BORDER=\"0\" CELLBORDER=\"1\" CELL... | Python | MIT License | pyomeca/bioptim | Split draw_graph() into subfunctions (2) |
538,841 | 19.05.2021 16:46:21 | -7,200 | d7b91b391aa93a76d125b96084d0bd1b3808a2a0 | Split draw_graph() into subfunctions (3) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -1084,7 +1084,11 @@ class OptimalControlProgram:\nfor phase_idx in range(n_phase):\nmain_nodes = draw_nlp_cluster(phase_idx)\n+\n+ def ... | Python | MIT License | pyomeca/bioptim | Split draw_graph() into subfunctions (3) |
538,841 | 20.05.2021 11:18:34 | -7,200 | 667ff532ae5abfdb43a2929df8350fc9485322f7 | TODO: change parameters to extra-parameters | [
{
"change_type": "MODIFY",
"old_path": "bioptim/misc/options.py",
"new_path": "bioptim/misc/options.py",
"diff": "@@ -46,7 +46,7 @@ class OptionGeneric:\nself.name = name\nself.type = type\n- self.params = params\n+ self.params = params # TODO: change parameters to extra-parameters (differentiate fr... | Python | MIT License | pyomeca/bioptim | TODO: change parameters to extra-parameters |
538,841 | 20.05.2021 14:15:01 | -7,200 | 8223cbb81310733264b9105c280fe04766336e21 | Send pn instead of pn.nlp in add_to_penalty() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -217,7 +217,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n# Since it is non-slipping normal forces are supposed to be greater than zero\nConstraintFunction.add_... | Python | MIT License | pyomeca/bioptim | Send pn instead of pn.nlp in add_to_penalty() |
538,841 | 20.05.2021 14:34:06 | -7,200 | c3143ebff822b98439011a5d56d9cda54a94b282 | Simplified draw_shooting_nodes() function | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -987,34 +987,9 @@ class OptimalControlProgram:\nif objective[0] == node_idx:\nmayer_str += objective[1]\n+ if constraints_str != \"\" o... | Python | MIT License | pyomeca/bioptim | Simplified draw_shooting_nodes() function |
538,841 | 20.05.2021 17:18:01 | -7,200 | 1dc87ffcae7da6a909398f53e14193b224268115 | Debug display shooting nodes | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -783,6 +783,7 @@ class OptimalControlProgram:\nobjective_names = []\nlagrange_str = \"\"\nfor objective in objective_list:\n+ if len(ob... | Python | MIT License | pyomeca/bioptim | Debug display shooting nodes |
538,841 | 21.05.2021 13:37:00 | -7,200 | cdb8ddf8a7bb99a11394e638b63426306f1bc247 | Move functions to graph.py (2) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "+from graphviz import Digraph\n+\nfrom ..limits.constraints import Constraint\nfrom ..limits.objective_functions import ObjectiveFcn, ObjectiveList\nfrom ..optimization.parameters import Param... | Python | MIT License | pyomeca/bioptim | Move functions to graph.py (2) |
538,841 | 21.05.2021 13:51:12 | -7,200 | 55be63ba435c2508bee15b0e8e5e8be3f359ec58 | Change "extra-parameter" for "parameter" | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -269,7 +269,7 @@ class OCPToGraph:\ndraw_parameter_node(param_idx, param)\nparam_idx += 1\nelse:\n- g.node(name=f'param_{phase_idx}0', label=f\"No extra-parameter set\")\n+ g.node(name=f'pa... | Python | MIT License | pyomeca/bioptim | Change "extra-parameter" for "parameter" |
538,841 | 25.05.2021 10:53:12 | -7,200 | 0f6794ec5ce0c8d9022ffcc2ad0e7b38fa5ad777 | Debug display shooting nodes index | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -129,6 +129,11 @@ class OCPToConsole:\nelse:\nmayer_str += f\"{obj.name}\"\nmayer_str = OCPToConsole.add_extra_parameters_to_str(obj.params, mayer_str)\n+ found = False\n+ for mayer in list... | Python | MIT License | pyomeca/bioptim | Debug display shooting nodes index |
538,841 | 25.05.2021 10:54:48 | -7,200 | bbcdf722e5b7b9519460b9b8c76905f23ef68c83 | Draw lightgrey edges | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -301,33 +301,33 @@ class OCPToGraph:\ndef draw_lagrange_to_mayer_edge():\nG.edge(f'lagrange_{phase_idx}',\nf'mayer_node_{phase_idx}',\n- color='black')\n+ color='lightgrey')\n# Draw edge be... | Python | MIT License | pyomeca/bioptim | Draw lightgrey edges |
538,841 | 26.05.2021 16:55:12 | -7,200 | bc4c5356369877b34859660794632f2d1bdf5a8f | First tests with pytest | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tests/test_graph.py",
"diff": "+import pytest\n+import numpy as np\n+\n+import biorbd\n+from bioptim import (\n+ OptimalControlProgram,\n+ DynamicsList,\n+ DynamicsFcn,\n+ ObjectiveList,\n+ ObjectiveFcn,\n+ BoundsList,\n+ QAndQDotBounds,\n+ Init... | Python | MIT License | pyomeca/bioptim | First tests with pytest |
538,841 | 28.05.2021 12:31:06 | -7,200 | 8c0ca6ee75513bb875b6e611e6673ba0dd73b955 | Add private functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -14,7 +14,7 @@ from ..dynamics.dynamics_type import DynamicsList, Dynamics\nfrom ..dynamics.ode_solver import OdeSolver, OdeSolverBase\... | Python | MIT License | pyomeca/bioptim | Add private functions |
538,841 | 28.05.2021 12:47:37 | -7,200 | 3a0ebf5ecbdfeccc856d512f3d21b9bbbde2f9fd | Passed private method __define_time to protected method | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -362,7 +362,7 @@ class OptimalControlProgram:\nself.update_parameters(parameters)\n# Declare the time to optimize\n- self.__define_time... | Python | MIT License | pyomeca/bioptim | Passed private method __define_time to protected method |
538,841 | 28.05.2021 14:35:13 | -7,200 | c3d6d597addfb896eca2e5327b26a6cbb8d4e68e | Delete range(len(xxx)) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -139,20 +139,23 @@ class GraphAbstratc:\nThe unscaled parameter\n\"\"\"\n+ size_initial_guess = len(parameter.initial_guess.init[0])\ninitial_guess = [\nparameter.initial_guess.init[i][j] *... | Python | MIT License | pyomeca/bioptim | Delete range(len(xxx)) |
538,841 | 28.05.2021 17:15:40 | -7,200 | 8830bd67f3fd0707df3782390ef6f0afaa60e635 | Removed optional values | [
{
"change_type": "MODIFY",
"old_path": "tests/test_graph.py",
"new_path": "tests/test_graph.py",
"diff": "@@ -21,10 +21,10 @@ from .utils import TestUtils\ndef prepare_ocp_phase_transitions(\nbiorbd_model_path: str,\n- ode_solver: OdeSolver = OdeSolver.RK4(),\n- with_constraints: bool = False,\n- wi... | Python | MIT License | pyomeca/bioptim | Removed optional values |
538,841 | 31.05.2021 01:12:25 | 25,200 | 9e9fdffe3f63ef3291028c4993c0550373b04df6 | show_online_optim windows | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/ipopt_interface.py",
"new_path": "bioptim/interfaces/ipopt_interface.py",
"diff": "from time import time\n+from sys import platform\nfrom casadi import vertcat, sum1, nlpsol, SX, MX\n@@ -73,7 +74,8 @@ class IpoptInterface(SolverInterface):\n... | Python | MIT License | pyomeca/bioptim | show_online_optim windows |
538,841 | 31.05.2021 03:05:57 | 25,200 | b217adb66da7cd589b13d3e3d515734144a39bb6 | Tests compatible windows | [
{
"change_type": "MODIFY",
"old_path": "tests/test_graph.py",
"new_path": "tests/test_graph.py",
"diff": "+from sys import platform\n+\nimport biorbd\nfrom bioptim import (\nOptimalControlProgram,\n@@ -143,6 +145,9 @@ def prepare_ocp_phase_transitions(\ndef test_simple_phase_transitions():\n+ if pla... | Python | MIT License | pyomeca/bioptim | Tests compatible windows |
538,841 | 31.05.2021 04:17:17 | 25,200 | 1c9efd15044a66cdf1e59460c53c067604129461 | Debug display constraints | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -176,6 +176,10 @@ class GraphAbstract:\nname = parameter.penalty_list.name\nreturn name\n+ def _analyze_nodes(self, phase_idx: int, constraint: Constraint):\n+ node = self.ocp.nlp[phase_idx... | Python | MIT License | pyomeca/bioptim | Debug display constraints |
538,841 | 01.06.2021 09:13:07 | 25,200 | 21c01b64af72abdb302fc02a131e94cc47682153 | Added new tests + last debug + blacked | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -375,7 +375,9 @@ class OcpToGraph(GraphAbstract):\nconstraint_str += f\"{constraint.name}<br/>\"\nconstraint_str += f\"Min bound: {constraint.min_bound}<br/>\"\nconstraint_str += f\"Max bou... | Python | MIT License | pyomeca/bioptim | Added new tests + last debug + blacked |
538,842 | 01.06.2021 13:49:07 | 14,400 | d4d0d4bb6c04e158c9ddcae6535fa856815c131f | Penultimate node and integrated plot for contact forces | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1280,6 +1280,7 @@ The accepted values are:\n- START: The first node\n- MID: The middle node\n- INTERMEDIATES: All the nodes but the first and the last one\n+- PENULTIMATE: The second to last node of the phase\n... | Python | MIT License | pyomeca/bioptim | Penultimate node and integrated plot for contact forces |
538,841 | 02.06.2021 02:33:39 | 25,200 | 4f9c5154eaa05533a56929de365352994241ecbf | Update tests (1) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -560,7 +560,12 @@ class OcpToGraph(GraphAbstract):\nnode_str = \"<b>Parameters</b><br/> No parameter set\"\ng.node(f\"param_{phase_idx}0\", f\"\"\"<{node_str}>\"\"\")\n- if len(self.ocp.nlp... | Python | MIT License | pyomeca/bioptim | Update tests (1) |
538,841 | 02.06.2021 08:26:09 | 25,200 | 45f71efa6b5aaaae67e4dab03580afd2d5424345 | Update tests (2) + blacked | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -11,6 +11,8 @@ class GraphAbstract:\n\"\"\"\nMethods\n-------\n+ _vector_layout(self, vector: list, size: int)\n+ Resize vector content for display task\n_add_dict_to_str(self, _dict: dict)... | Python | MIT License | pyomeca/bioptim | Update tests (2) + blacked |
538,842 | 02.06.2021 16:55:12 | 14,400 | 6b9678a970efb1fd9700f12c23ff248043f517eb | Adding a test for the function _get_node | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -1245,6 +1245,8 @@ class PenaltyFunctionAbstract:\nu.append(nlp.U[i])\nelif node == Node.PENULTIMATE:\n+ if nlp.ns < 2:\n+ raise (ValueError(\"Number of shooting points must be su... | Python | MIT License | pyomeca/bioptim | Adding a test for the function _get_node |
538,842 | 02.06.2021 17:04:01 | 14,400 | 9aa5233832030655be84803cf00a7fb30539f7b9 | Adding torque derivative driven problem | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -12,6 +12,8 @@ class DynamicsFunctions:\nInterface to custom dynamic function provided by the user\nforward_dynamics_torque_driven(states: MX.sym, contro... | Python | MIT License | pyomeca/bioptim | Adding torque derivative driven problem |
538,842 | 02.06.2021 17:42:54 | 14,400 | 50054d52f1692cce3f83719c36b3f07050c138b1 | Adding torque derivative driven problem with conctact | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -17,6 +17,12 @@ class DynamicsFunctions:\nforward_dynamics_torque_driven_with_contact(\nstates: MX.sym, controls: MX.sym, parameters: MX.sym, nlp: NonLin... | Python | MIT License | pyomeca/bioptim | Adding torque derivative driven problem with conctact |
538,842 | 02.06.2021 18:03:30 | 14,400 | 9c34ff83e64045a9ec78ee4082effd5c9648ec79 | Readme updated and minor bug fixed in dynamic_functions.py | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -654,6 +654,19 @@ The torque driven defines the states (x) as *q* and *qdot* and the controls (u)\nThe derivative of *q* is trivially *qdot*.\nThe derivative of *qdot* is given by the `biorbd` function that incl... | Python | MIT License | pyomeca/bioptim | Readme updated and minor bug fixed in dynamic_functions.py |
538,841 | 03.06.2021 02:42:28 | 25,200 | c5aa779c672900a2d26abb633172483f48e6fdfb | Update tests (3) + blacked | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -3,6 +3,7 @@ from graphviz import Digraph\nfrom ..limits.constraints import Constraint\nfrom ..limits.objective_functions import ObjectiveFcn, ObjectiveList, Objective\nfrom ..optimization.... | Python | MIT License | pyomeca/bioptim | Update tests (3) + blacked |
538,842 | 03.06.2021 09:00:51 | 14,400 | 99da9f292eb6252db6af1da6aacad4b4d657efa9 | Corrections done on test_penalty.py | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -1246,7 +1246,7 @@ class PenaltyFunctionAbstract:\nelif node == Node.PENULTIMATE:\nif nlp.ns < 2:\n- raise (ValueError(\"Number of shooting points must be superior than 1, at leas... | Python | MIT License | pyomeca/bioptim | Corrections done on test_penalty.py |
538,842 | 03.06.2021 10:24:10 | 14,400 | d238409c28002c685a35a2defe9e4efd55c4fb52 | Black executed | [
{
"change_type": "MODIFY",
"old_path": "tests/test_penalty.py",
"new_path": "tests/test_penalty.py",
"diff": "@@ -1130,8 +1130,9 @@ def test_penalty_track_markers_with_nan(penalty_origin, value):\n)\n-@pytest.mark.parametrize(\"node\", [Node.ALL, Node.INTERMEDIATES, Node.START, Node.MID, Node.PENULT... | Python | MIT License | pyomeca/bioptim | Black executed |
538,841 | 04.06.2021 17:36:03 | -7,200 | 688e469c066a1de51cbcf7a4cc78b03d034ab65d | Debug _vector_layout() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -54,19 +54,31 @@ class GraphAbstract:\nsize: int\nThe size of the vector\n\"\"\"\n-\n- if size > 1:\n+ if size > 1 and isinstance(vector, list):\n+ condensed_vector = \"[\"\n+ count = 0\n+ ... | Python | MIT License | pyomeca/bioptim | Debug _vector_layout() |
538,842 | 04.06.2021 14:22:14 | 14,400 | a4240736422554c4865a46402834b691b478499d | updating function doc of configure_taudot | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/problem.py",
"new_path": "bioptim/dynamics/problem.py",
"diff": "@@ -550,9 +550,9 @@ class Problem:\nnlp: NonLinearProgram\nA reference to the phase\nas_states: bool\n- If the generalized forces should be a state\n+ If the generalized force de... | Python | MIT License | pyomeca/bioptim | updating function doc of configure_taudot |
538,841 | 07.06.2021 08:56:02 | -7,200 | bc535226a7aaaa9516c3b706a5048ce3ffd94585 | Update _vector_layout() | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "from graphviz import Digraph\n+from typing import Union\n+\n+import numpy as np\nfrom ..limits.constraints import Constraint\nfrom ..limits.objective_functions import ObjectiveFcn, ObjectiveLi... | Python | MIT License | pyomeca/bioptim | Update _vector_layout() |
538,842 | 07.06.2021 08:18:42 | 14,400 | 460b06dbad1098b37a540da318a3582c3f90d549 | Adding the suggested modification for PR | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -833,9 +833,10 @@ class DynamicsFunctions:\n\"\"\"\nnq = nlp.mapping[\"q\"].to_first.len\n+ nqdot = nlp.mapping[\"qdot\"].to_first.len\nq = nlp.mapping[\... | Python | MIT License | pyomeca/bioptim | Adding the suggested modification for PR |
538,841 | 07.06.2021 14:19:28 | -7,200 | 1d9643499a94297141d33d7247e3ca3c9b3cdfc4 | Update vector_layout() (2) | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -46,7 +46,7 @@ class GraphAbstract:\nself.ocp = ocp\n- def _vector_layout_structure(self, vector: Union[list, np.array], count: int):\n+ def _vector_layout_structure(self, vector: Union[lis... | Python | MIT License | pyomeca/bioptim | Update vector_layout() (2) |
538,841 | 07.06.2021 16:16:32 | -7,200 | 57f6551c951d021a70daa754713084736520f88b | Display scaling for parameters | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -4,17 +4,19 @@ from typing import Union\nimport numpy as np\nfrom ..limits.constraints import Constraint\n-from ..limits.objective_functions import ObjectiveFcn, ObjectiveList, Objective\n+... | Python | MIT License | pyomeca/bioptim | Display scaling for parameters |
538,842 | 07.06.2021 10:44:26 | 14,400 | 5ff72054acc315816ca2ab1555c845974906af03 | Adapting objective functions for torque derivative problems | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -679,6 +679,7 @@ class ObjectiveFcn:\nMINIMIZE_MUSCLES_CONTROL = (PenaltyType.MINIMIZE_MUSCLES_CONTROL,)\nTRACK_MUSCLES_CONTROL = (PenaltyType.TRACK_MUSCLE... | Python | MIT License | pyomeca/bioptim | Adapting objective functions for torque derivative problems |
538,841 | 08.06.2021 09:58:25 | -7,200 | 0a54f457cedb224d3bdb66de283d886de7b913c7 | Square brackets for parameter display | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/graph.py",
"new_path": "bioptim/gui/graph.py",
"diff": "@@ -90,9 +90,9 @@ class GraphAbstract:\nfor i in range(vector.shape[1]):\nif i != 0:\ncondensed_vector += f\"{self._return_line}\"\n- condensed_vector += \"[\"\n+ condensed_vector += \"[\" if ... | Python | MIT License | pyomeca/bioptim | Square brackets for parameter display |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.