diff --git a/exampleparser/parser.py b/exampleparser/parser.py index 7de5802..19ecf47 100644 --- a/exampleparser/parser.py +++ b/exampleparser/parser.py @@ -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 diff --git a/tests/test_parser.py b/tests/test_parser.py index 86a8e98..d0afa07 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -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