pedrojrv/nucml

View on GitHub
Update evaluation.py #86
Pedro Vicente Valdez authored 3 years ago7215a45c
complete00:00:13
Your first build completed successfully!
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
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, [2025-03-22T18:37:04.213084 #1]  INFO -- : Skipping file ./nucml/ace/serpent_utilities.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 69
    results_df[f"Deviation_{k_type}"] = results_df[[f'K_eff_{k_type.lower()}']].apply(lambda k: abs((k-1)/1))
                                   ^
SyntaxError: invalid syntax


I, [2025-03-22T18:37:04.236937 #1]  INFO -- : Skipping file ./nucml/datasets/ensdf.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 186
    logging.info(f"Finished. Resulting dataset has shape {ensdf_df.shape}, Training and Testing dataset shapes are "
                                                                                                                   ^
SyntaxError: invalid syntax


I, [2025-03-22T18:37:04.282894 #1]  INFO -- : Skipping file ./nucml/datasets/ame.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 51
    ame_file_path = os.path.join(ame_dir_path, f"AME_{suffix}.csv")
                                                                 ^
SyntaxError: invalid syntax


I, [2025-03-22T18:37:04.297602 #1]  INFO -- : Skipping file ./nucml/datasets/evaluation.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 load_evaluation(isotope: str, MT, mode="neutrons", library="endfb8.0", log=True, drop_u=True):
                               ^
SyntaxError: invalid syntax


I, [2025-03-22T18:37:04.396612 #1]  INFO -- : Skipping file nucml/processing.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 107
    raise ValueError(f"Scaling type not supported. Only {list(scalers.keys())} are supported.")
                                                                                             ^
SyntaxError: invalid syntax


I, [2025-03-22T18:37:04.791423 #1]  INFO -- : Skipping file nucml/configure.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 33
    raise FileExistsError(f"{path} is not a directory. Make sure it exists.")
                                                                           ^
SyntaxError: invalid syntax


I, [2025-03-22T18:37:04.824969 #1]  INFO -- : Skipping file ./nucml/ame/parsing.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 136
    filename = os.path.join(originals_directory, f"rct{rct_file}-16.txt")
                                                                       ^
SyntaxError: invalid syntax

Congratulations

Your first build completed successfully!

See the Results