Skip to content

Commit

Permalink
fix yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Lysogorskiy committed Nov 22, 2023
1 parent b91cff1 commit a66c310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/pacemaker
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def main(args):
log.info("ace_evaluator version: {}".format(get_ace_evaluator_version()))
log.info("Loading {}... ".format(input_yaml_filename))
with open(input_yaml_filename) as f:
args_yaml = yaml.safe_load(f)
yaml_loader = yaml.YAML(typ='safe', pure=True)
args_yaml = yaml_loader.load(f)

assert isinstance(args_yaml, dict)
if "cutoff" in args_yaml:
Expand Down
2 changes: 1 addition & 1 deletion lib/ace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ add_subdirectory(${CNPY_PATH})
#target_include_directories(test_extended PUBLIC ${WIGNER_INCLUDE_PATH})
## cnpy
#target_include_directories(test_extended PUBLIC ${CNPY_INCLUDE_PATH})
#target_link_libraries(test_extended cnpy-static)
#target_link_libraries(test_extended cnpy)
##YAML
#target_include_directories(test_extended PUBLIC ${YAML_INCLUDE_PATH})
#target_link_libraries(test_extended yaml-cpp)
Expand Down

0 comments on commit a66c310

Please sign in to comment.