Skip to content

Commit

Permalink
Use data section
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Aug 14, 2024
1 parent daab4ce commit 32136da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exampleparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ def parse(self, mainfile: str, archive: EntryArchive, logger):
if magic_source is not None:
calc.x_example_magic_value = magic_source
run.calculation.append(calc)
archive.run.append(run)
archive.data = run
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_example(parser):
data_path = os.path.join("tests", "data", "example.out")
parser.parse(data_path, archive, logging)

run = archive.run[0]
run = archive.data
assert len(run.system) == 2
assert len(run.calculation) == 2
assert run.calculation[0].x_example_magic_value == 42

0 comments on commit 32136da

Please sign in to comment.