Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesouza committed Dec 16, 2023
1 parent e11eba2 commit 6040827
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kerncraft/kerncraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def run(parser, args, output_file=sys.stdout):
else:
description = str(args.code_file.read())
args.code_file.close()
yaml = ruamel.YAML(typ='rt')
yaml = ruamel.yaml.YAML(typ='rt')
kernel = KernelDescription(yaml.load(description), machine=machine)

loop_indices = set([symbol_pos_int(l['index']) for l in kernel.get_loop_stack()])
Expand Down
2 changes: 1 addition & 1 deletion kerncraft/machinemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(self, path_to_yaml=None, machine_yaml=None, args=None):
if abspath_to_yaml not in self._loaded_machine_yaml:
with open(path_to_yaml, 'r') as f:
# Ignore ruamel unsafe loading warning, by supplying Loader parameter
yaml = ruamel.YAML(typ='rt')
yaml = ruamel.yaml.YAML(typ='rt')
self._loaded_machine_yaml[abspath_to_yaml] = yaml.load(f)
self._data = self._loaded_machine_yaml[abspath_to_yaml]
elif machine_yaml:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setUp(self):
with open(self._find_file('3d-7pt.c')) as f:
self.threed_code = f.read()
with open(self._find_file('2d-5pt.yml')) as f:
yaml = ruamel.YAML(typ='rt')
yaml = ruamel.yaml.YAML(typ='rt')
self.twod_description = yaml.load(f.read())
with open(self._find_file('copy-2d-linearized.c')) as f:
self.twod_linear = f.read()
Expand Down

0 comments on commit 6040827

Please sign in to comment.