Erdnaxela3/bioptim_gui

View on GitHub
docs: added todo generate_model #118
Alexandre WENG authored a3693590
complete00:00:31
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: unknown engine or channel <codescan:stable>
WARNING: unknown engine or channel <cody:stable>
WARNING: unknown engine or channel <isort:stable>
WARNING: unknown engine or channel <proselint:stable>
WARNING: unknown engine or channel <protobuf:stable>
WARNING: unknown engine or channel <rustfmt:stable>
WARNING: unknown engine or channel <tfsec:stable>
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-bandit:b1124
b1124: Pulling from codeclimate/codeclimate-bandit
c158987b0551: Pulling fs layer
f7a0074baec6: Pulling fs layer
d3652c33ba6f: Pulling fs layer
91bdc615afbe: Pulling fs layer
3ac712e04e08: Pulling fs layer
30af34904229: Pulling fs layer
6d42fbb1fef9: Pulling fs layer
91bdc615afbe: Waiting
3ac712e04e08: Waiting
30af34904229: Waiting
6d42fbb1fef9: Waiting
f7a0074baec6: Download complete
d3652c33ba6f: Download complete
3ac712e04e08: Verifying Checksum
3ac712e04e08: Download complete
30af34904229: Verifying Checksum
30af34904229: Download complete
c158987b0551: Verifying Checksum
c158987b0551: Download complete
6d42fbb1fef9: Verifying Checksum
6d42fbb1fef9: Download complete
c158987b0551: Pull complete
f7a0074baec6: Pull complete
d3652c33ba6f: Pull complete
91bdc615afbe: Download complete
91bdc615afbe: Pull complete
3ac712e04e08: Pull complete
30af34904229: Pull complete
6d42fbb1fef9: Pull complete
Digest: sha256:4a20738ab9ac2ef317caa32e02acce6222a25cbf52d6076f058aa3223806783d
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-bandit:b1124
docker pull codeclimate/codeclimate-dart:b1028
b1028: Pulling from codeclimate/codeclimate-dart
75ea27cfafcd: Pulling fs layer
5abd52d9bc58: Pulling fs layer
781fb38fc8df: Pulling fs layer
afb51c21cbec: Pulling fs layer
cffa70a98ac0: Pulling fs layer
f9f4cdc69f25: Pulling fs layer
afb51c21cbec: Waiting
cffa70a98ac0: Waiting
f9f4cdc69f25: Waiting
5abd52d9bc58: Verifying Checksum
5abd52d9bc58: Download complete
781fb38fc8df: Verifying Checksum
781fb38fc8df: Download complete
cffa70a98ac0: Verifying Checksum
cffa70a98ac0: Download complete
f9f4cdc69f25: Download complete
afb51c21cbec: Download complete
75ea27cfafcd: Verifying Checksum
75ea27cfafcd: Download complete
75ea27cfafcd: Pull complete
5abd52d9bc58: Pull complete
781fb38fc8df: Pull complete
afb51c21cbec: Pull complete
cffa70a98ac0: Pull complete
f9f4cdc69f25: Pull complete
Digest: sha256:de49410bb06072305a580fa9f77b06c3ee7d2c098b2db4c1d09d69572d7d5968
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-dart:b1028
docker pull codeclimate/codeclimate-radon:b1037
b1037: Pulling from codeclimate/codeclimate-radon
fa7045767063: Pulling fs layer
13638bc2bb30: Pulling fs layer
d8f03f56e732: Pulling fs layer
4918cacdd7fc: Pulling fs layer
e93efd73db3d: Pulling fs layer
3276cef2bdfe: Pulling fs layer
4918cacdd7fc: Waiting
e93efd73db3d: Waiting
3276cef2bdfe: Waiting
13638bc2bb30: Download complete
fa7045767063: Verifying Checksum
fa7045767063: Download complete
d8f03f56e732: Verifying Checksum
d8f03f56e732: Download complete
fa7045767063: Pull complete
e93efd73db3d: Verifying Checksum
e93efd73db3d: Download complete
3276cef2bdfe: Verifying Checksum
3276cef2bdfe: Download complete
13638bc2bb30: Pull complete
d8f03f56e732: Pull complete
4918cacdd7fc: Verifying Checksum
4918cacdd7fc: Download complete
4918cacdd7fc: Pull complete
e93efd73db3d: Pull complete
3276cef2bdfe: Pull complete
Digest: sha256:85e830e588ac65d31c3df1f2adf90f6c1a44468c4dcc50e5fdfd7b1c14f5469a
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-radon:b1037
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-10-30T03:18:41.650161 #1]  INFO -- : Skipping file ./gui/graph_multiple_sols.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 94
    def plot_solutions(pkl_paths: list[str], variable: str = "q") -> None:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.659595 #1]  INFO -- : Skipping file ./gui/animate.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def merge_videos(video1_path: str, video2_path: str, save_path: str):
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.670748 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_responses.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    model_path: str
              ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.678471 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_phases_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    def new_shape(array: list, new_dimension: int) -> tuple:
                       ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.681875 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_phases_objectives.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def register(self, route: APIRouter) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.692897 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_phases.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    def register(self, route: APIRouter) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.713071 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    def register(self, route: APIRouter) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.716460 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_penalties.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def __init__(self, data, penalty_type: str):
                                         ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.724139 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_requests.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    nb_phases: int
             ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.727630 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/code_generation/gen_prepare_ocp.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def prepare_ocp_header(cls) -> str:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.735148 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/code_generation/common.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def main_function(cls, data: dict) -> str:
                               ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.738731 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/code_generation/imports.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def generate_imports(cls) -> str:
                              ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.749886 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/code_generation/bounds.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def declare_bounds(cls) -> str:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.757123 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/code_generation/generic_generation_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    def generic_generated_code(data: dict) -> str:
                                   ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.768188 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/misc/generic_ocp_data.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    def read_data(cls, key: str = None):
                          ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.779414 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/generic_ocp/misc/generic_ocp_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    def add_phase_info(n: int = 1) -> None:
                        ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.801638 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/penalty/misc/constraint_printer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    def __init__(self, phase: int = 0, **kwargs):
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.813420 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/penalty/misc/objective_printer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def __init__(self, phase: int = 0, **kwargs):
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.823363 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/penalty/misc/penalty_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 9
    def format_arg_type(arg_type: str) -> str:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.842137 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/penalty/misc/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    penalty_type: str
                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.845353 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/penalty/misc/penalty_printer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 35
    def __init__(self, phase: int = 0, **kwargs):
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.853148 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/utils/format_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 4
    def arg_to_string(argument: dict) -> str:
                              ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.864255 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/model_converter/converter.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    def _add_dofs(cls, segment_name: str, updated_lines: list[str], stripped: str):
                                   ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.870083 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/model_converter/converter_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    f"Trampo_corner_{n}" for n in range(1, 5)
                       ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.875400 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/model_converter/converter_str_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def skip_ranges_q(self, current_index: int) -> int:
                                         ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.897337 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/non_collision_cylinders/cylinder_collisions.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    return f"Cylinder({self.element1}, {self.element2})"
                                                       ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.908312 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/kickout.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def kickout_objectives(phase_name: str, model) -> list:
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.917864 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/common.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def common_objectives(phase_name: str = None, position: str = "straight", phase_index: int = 0, model=None) -> list:
                                    ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.929542 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def with_spine_proportional_control(model) -> list[dict]:
                                               ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.940470 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/somersault.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def somersault_objectives(phase_name: str, model) -> list:
                                        ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.940918 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/waiting.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def waiting_objectives(phase_name: str, model):
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.951488 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/twist.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def twist_objectives(phase_name: str, model):
                                   ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.962643 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/pike_tuck.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def pike_tuck_objectives(phase_name: str, model, position: str) -> list:
                                       ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.963099 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/phases/landing.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    def landing_objectives(phase_name: str, model, position: str):
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.974128 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/penalties/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    phase_names: list[str], phase_index: int, position: str, additional_criteria: AdditionalCriteria
               ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.984671 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics_requests.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    nb_somersaults: int
                  ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.985222 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics_responses.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    nb_half_twists: list[int]
                  ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.995923 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 48
    def register(self, route: APIRouter) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:41.996408 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics_phases.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def register_put_phase_index_duration(self) -> None:
                                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.007574 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics_phases_modifiers.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def register(self, route: APIRouter) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.019160 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/gen_prepare_ocp_non_collision.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def prepare_ocp_header(cls) -> str:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.032006 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/custom_penalty_fcn.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 61
    def closest_distance_between_lines(cls) -> str:
                                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.032547 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/acrobatics_generation_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    def generated_code(data: dict, new_model_path: str, coneless_model_path: str = None) -> str:
                           ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.043104 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/gen_prepare_ocp.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def prepare_ocp_header(cls) -> str:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.043755 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/common_non_collision.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def construct_path(cls, data: dict) -> str:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.054125 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/common.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def construct_path(cls, data: dict) -> str:
                                ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.054886 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/bounds_non_collision.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def add_q_init(cls, data: dict) -> str:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.066033 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/code_generation/bounds.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def add_q_bounds(cls, data: dict) -> str:
                              ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.077534 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/pike_acrobatics_variables_with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 163
    def _fill_landing_phase(cls, x_bounds, half_twists: list) -> dict:
                                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.087730 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/tuck_acrobatics_variables_with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 167
    def _fill_landing_phase(cls, x_bounds, half_twists: list) -> dict:
                                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.088973 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/straight_with_visual_acrobatics_variables_with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 144
    def _fill_landing_phase(cls, x_bounds, half_twists: list) -> dict:
                                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.098967 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/straight_with_visual_acrobatics_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 96
    def get_q_bounds(cls, half_twists: list, prefer_left: bool) -> dict:
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.100287 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/tuck_acrobatics_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 119
    def get_q_bounds(cls, half_twists: list, prefer_left: bool) -> dict:
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.110382 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/pike_with_visual_acrobatics_variables_with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 179
    def _fill_landing_phase(cls, x_bounds, half_twists: list) -> dict:
                                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.111620 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/straight_acrobatics_variables_with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 128
    def _fill_landing_phase(cls, x_bounds, half_twists: list) -> dict:
                                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.121687 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/pike_with_visual_acrobatics_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 131
    def get_q_bounds(cls, half_twists: list, prefer_left: bool) -> dict:
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.123115 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/straight_acrobatics_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 85
    def _fill_init_phase(cls, x_bounds: np.ndarray) -> None:
                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.133266 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/pike_acrobatics_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 117
    def _fill_init_phase(cls, x_bounds: np.ndarray, half_twists: list) -> None:
                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.144736 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/tuck_with_visual_acrobatics_variables_with_spine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 183
    def _fill_landing_phase(cls, x_bounds, half_twists: list) -> dict:
                                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.145599 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_computers/tuck_with_visual_acrobatics_variables.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 135
    def get_q_bounds(cls, half_twists: list, prefer_left: bool) -> dict:
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.155832 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/variable_compute.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 43
    position: str = "straight", additional_criteria: AdditionalCriteria = None
            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.166830 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/variables/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def maximum_fig_arms_angle(half_twists: list) -> float:
                                          ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.177982 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/misc/phase_updating.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def update_state_control_variables(phases: list[dict], data: dict) -> None:
                                             ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.193080 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/misc/acrobatics_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def calculate_n_tuck(half_twists: list[int]) -> int:
                                    ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.200037 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/misc/dynamics_updating.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 4
    def adapt_dynamics(phase: dict, dynamics: str) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.204273 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/acrobatics_ocp/misc/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    with_visual_criteria: bool = False
                        ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.235180 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/variables/misc/variables_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    def variables_zeros(dimension: int, interpolation_type: str) -> list:
                                 ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.238164 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/variables/misc/variables_config.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    name: str,
        ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.249266 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/load_existing/endpoints/load_existing.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    async def handle_pkl(file: UploadFile) -> (bool, float):
            ^
SyntaxError: invalid syntax


I, [2024-10-30T03:18:42.260247 #1]  INFO -- : Skipping file ./api/bioptim_gui_api/load_existing/endpoints/load_existing_responses.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    to_discard: list[str] = []
              ^
SyntaxError: invalid syntax
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
109 [0.. 50.. 100.. ]
8
black
black engine documentation
9
dart
dart engine documentation
10
eslint
eslint engine documentation
View output
No rules are configured. Make sure you have added a config file with rules enabled.
See our documentation at https://docs.codeclimate.com/docs/eslint for more information.
(node:8) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
11
fixme
fixme engine documentation
12
radon
radon engine documentation
View output
Running radon...
13
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/gui/windows/runner/resources/app_icon.ico' at line 2 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/main.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/cuisse.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/avantbras.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/jambe.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/pied.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/pelvis.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/thorax.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/tete.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/Model_mesh/bras.stl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 262 files indexed
ERROR: Unable to parse file: /code/api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_responses.py
ERROR: Parse error at line 31 column 14:

   19: QuadraticRequest,
   20:     TargetRequest,
   21:     WeightRequest,
   22:     DynamicsRequest,
   23: )
   24: 
   25: 
   26: class NbPhasesResponse(NbPhasesRequest):
   27:     pass
   28: 
   29: 
   30: class ModelPathResponse(BaseModel):
  -->      model_path: str
   32: 
   33: 
   34: class NbShootingPointsResponse(NbShootingPointsRequest):
   35:     pass
   36: 
   37: 
   38: class PhaseDurationResponse(PhaseDurationRequest):
   39:     pass
   40: 
   41: 
   42: class NodesResponse(NodesRequest

ERROR: Unable to parse file: /code/api/bioptim_gui_api/generic_ocp/endpoints/generic_ocp_requests.py
ERROR: Parse error at line 11 column 13:

    6: penalty.misc.enums import ObjectiveType
    7: from bioptim_gui_api.variables.misc.enums import Dynamics, InterpolationType
    8: 
    9: 
   10: class NbPhasesRequest(BaseModel):
  -->      nb_phases: int
   12: 
   13: 
   14: class NbShootingPointsRequest(BaseModel):
   15:     nb_shooting_points: int
   16: 
   17: 
   18: class DynamicsRequest(BaseModel):
   19:     dynamics: Dynamics
   20: 
   21: 
   22: 

ERROR: Unable to parse file: /code/api/bioptim_gui_api/penalty/misc/models.py
ERROR: Parse error at line 10 column 16:

    3: import QuadratureRule, Node
    4: from pydantic import BaseModel
    5: 
    6: from bioptim_gui_api.penalty.misc.enums import ObjectiveType
    7: 
    8: 
    9: class Penalty(BaseModel):
  -->      penalty_type: str
   11:     nodes: Node
   12:     quadratic: bool = True
   13:     expand: bool = True
   14:     target: Optional[list] = None
   15:     derivative:

ERROR: Unable to parse file: /code/api/bioptim_gui_api/acrobatics_ocp/penalties/phases/common.py
ERROR: Parse error at line 26 column 19:

    7: , model=None) -> list:
    8:     """
    9:     Objectives that are common regardless of the phase and position
   10: 
   11:     MINIMIZE_CONTROL lagrange: tau, all_shooting, weight=1.0
   12:     MINIMIZE_CONTROL lagrange: tau, derivative, all_shooting, weight=1.0
   13:     MINIMIZE_TIME mayer:
   14:     Straight: end, weight=1.0,
   15:     Pike/Tuck:
   16:     |--------|-------------|--------|-----------|------------|----------|----------|--------|
   17:     | Phase  | Start Twist | Twist  | Pike/Tuck | Somersault | Kick-out | Waiting | Landing |
   18:     |--------|-------------|--------|-----------|------------|----------|---------|---------|
   19:     | weight |     1.0     |  -0.01 |    100k   |   -100     |   100k   |  -0.01  |  -0.01  |
   20:     |--------|-------------|--------|-----------|------------|----------|---------|---------|
   21: 
   22:     """
   23: 
   24:     phase_name_to_minimize_time_weight = {
   25:         "Twist": 1.0 if phase_index == 0 else -0.01,
  -->          "Pike": 100_000.0,
   27:         "Tuck": 100_000.0,
   28:         "Somersault": -100.0,
   29:         "Kick out": 100_000.0,
   30:         "Waiting": -0.01,
   31:         "Landing": -0.01,

ERROR: Unable to parse file: /code/api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics_requests.py
ERROR: Parse error at line 11 column 18:

    1: import BaseModel
    2: 
    3: from bioptim_gui_api.acrobatics_ocp.misc.enums import (
    4:     Position,
    5:     SportType,
    6:     PreferredTwistSide,
    7: )
    8: 
    9: 
   10: class NbSomersaultsRequest(BaseModel):
  -->      nb_somersaults: int
   12: 
   13: 
   14: class NbHalfTwistsRequest(BaseModel):
   15:     nb_half_twists: int
   16: 
   17: 
   18: class FinalTimeRequest(BaseModel):
   19:     final_time: float
   20: 
   21: 
   22: 

ERROR: Unable to parse file: /code/api/bioptim_gui_api/acrobatics_ocp/endpoints/acrobatics_responses.py
ERROR: Parse error at line 22 column 18:

   17: generic_ocp.endpoints.generic_ocp_requests import PhaseDurationRequest, DynamicsRequest
   18: from bioptim_gui_api.variables.misc.enums import Dynamics
   19: 
   20: 
   21: class NbSomersaultsResponse(NbSomersaultsRequest):
  -->      nb_half_twists: list[int]
   23:     position: Position
   24:     phases_info: list[dict]
   25:     dof_names: list[str]
   26: 
   27: 
   28: class PositionResponse(PositionRequest)

ERROR: Unable to parse file: /code/api/bioptim_gui_api/acrobatics_ocp/misc/models.py
ERROR: Parse error at line 11 column 24:

    1: from typing import NamedTuple
    2: 
    3: 
    4: class AdditionalCriteria(NamedTuple):
    5:     """
    6:     The additional criteria (e.g. with_visual_criteria, collision_constraint, without_cone)
    7:     Can be used to add/remove additional criteria to the acrobatics that would otherwise result in more/less arguments
    8:     in functions that depends on it (objectives, constraints, code generation, model conversion, ...)
    9:     """
   10: 
  -->      with_visual_criteria: bool = False
   12:     collision_constraint: bool = False
   13:     without_cone: bool = False
   14:     with_spine: bool = False
   15: EOF

ERROR: Unable to parse file: /code/api/bioptim_gui_api/variables/misc/variables_utils.py
ERROR: Parse error at line 119 column 9:

  109: (new_init, 2).tolist()
  110: 
  111:     old_variable["initial_guess_interpolation_type"] = interpolation_type
  112: 
  113: 
  114: class LooseValue(NamedTuple):
  115:     """
  116:     A value with a looseness
  117:     """
  118: 
  -->      value: float
  120:     looseness: float = 0.0
  121: 
  122: 
  123: def define_loose_bounds(bound: np.ndarray, dof: int, node: int, loose_value: LooseValue

ERROR: Unable to parse file: /code/api/bioptim_gui_api/load_existing/endpoints/load_existing_responses.py
ERROR: Parse error at line 7 column 14:

    1: from typing import Optional
    2: 
    3: from pydantic import BaseModel
    4: 
    5: 
    6: class LoadExistingResponse(BaseModel):
  -->      to_discard: list[str] = []
    8:     best: Optional[str] = None
    9: EOF

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.997s
INFO: Final Memory: 8M/417M
INFO: ------------------------------------------------------------------------