diff --git a/pisa_utils/post_process_parsers.py b/pisa_utils/post_process_parsers.py index 1174636..f4c6ead 100644 --- a/pisa_utils/post_process_parsers.py +++ b/pisa_utils/post_process_parsers.py @@ -19,9 +19,6 @@ def __init__(self, input_json_path, output_json_path, compressed=False): self.output_json_path = output_json_path self.compressed = compressed - with open_compressed(self.input_json_path, compressed=self.compressed) as f: - self.data = json.load(f) - def save(self, path_json: str, data: dict) -> None: """ Save data to JSON file, with optional gzip compression. @@ -38,11 +35,14 @@ def save(self, path_json: str, data: dict) -> None: @abstractmethod def parse(self): - pass + with open_compressed(self.input_json_path, compressed=self.compressed) as f: + self.data = json.load(f) class PostProcessComplexTable(PostProcessor): def parse(self): + super().parse() + output = [] # Add ASU complex diff --git a/pyproject.toml b/pyproject.toml index 44d5056..e312b29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pisa-analysis" -version = "3.2.0" +version = "3.2.1" description = "This python package works with PISA to analyse data for macromolecular interfaces and interactions in assemblies." authors = [ { name = "Grisell Diaz Leines", email = "gdiazleines@ebi.ac.uk" }, diff --git a/uv.lock b/uv.lock index a3e05d9..a15ac4b 100644 --- a/uv.lock +++ b/uv.lock @@ -725,7 +725,7 @@ wheels = [ [[package]] name = "pisa-analysis" -version = "3.2.0" +version = "3.2.1" source = { editable = "." } dependencies = [ { name = "gemmi" },