diff --git a/src/pals/PALS.py b/src/pals/PALS.py index 9354219..1dbd5b8 100644 --- a/src/pals/PALS.py +++ b/src/pals/PALS.py @@ -88,15 +88,6 @@ def unpack_json_structure(cls, data): data = inner data = dict(data) - # Authors are written as one-key `author:` dicts; unwrap them. - if isinstance(data.get("authors"), list): - data["authors"] = [ - entry["author"] - if isinstance(entry, dict) and set(entry) == {"author"} - else entry - for entry in data["authors"] - ] - # Unpack each facility element's name; facility is optional. if data.get("facility") is not None: if not isinstance(data["facility"], list): @@ -113,13 +104,6 @@ def model_dump(self, *args, **kwargs): # Keep `version` in the output even when unset. data = {"version": self.version, **data} - # Restore the one-key `author:` form of each authors entry. - if self.authors is not None: - data["authors"] = [ - {"author": author.model_dump(*args, **kwargs)} - for author in self.authors - ] - # Reformat facility elements into their one-key named form. if self.facility is not None: data["facility"] = [elem.model_dump(**kwargs) for elem in self.facility] diff --git a/tests/standard_examples_git_reference.txt b/tests/standard_examples_git_reference.txt index 2f92b1d..c33bf17 100644 --- a/tests/standard_examples_git_reference.txt +++ b/tests/standard_examples_git_reference.txt @@ -7,4 +7,4 @@ # # The first non-comment line is the pin: a full commit SHA of # https://github.com/pals-project/pals -5c39fde043ddad7a961ede01a5ad73d90b098aec +7ffec924f6109bebfb6a54196737ab48893a9a9f