Repository navigation
Handle no interfaces case - #74
Merged
Merged
Conversation
Write empty files. This should be reviewed once a job-status report feature is implemented
Contributor
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟡 Changes recommended
Outstanding issues remain because the parser’s empty-results paths both produce schema-invalid JSON outputs (writing {} where required fields like interfaces, n_interfaces, and interface_types are missing) and, in the summary writer, may crash at runtime by opening gzip output in binary mode while json.dump writes text.
2 open issues
What changed in this PR
Handles “no interfaces” (e.g., true monomer) scenarios by making outputs deterministic so downstream steps can proceed when interface-derived inputs are absent.
Changes:
- Bump project/package version to
3.5.3. - In post-processing, emit an empty interface table when interface summary input is empty/missing.
- In parsers, add handling for missing/empty interface inputs to write empty JSON outputs (with warnings) instead of skipping file creation.
| File | Description |
|---|---|
| uv.lock | Updates the lockfile to reflect the version bump and associated dependency resolution state. |
| pyproject.toml | Bumps the project version to 3.5.3. |
| pisa_utils/post_process_parsers.py | Adds a guard to write an empty interface table output when the interface summary input is empty or missing. |
| pisa_utils/parsers.py | Adjusts parsing/summary compilation to handle missing or empty interface inputs by emitting empty JSON outputs and logging warnings. |
Review effort: Balanced
Change the output JSON structure to include initial keys. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


I noticed this bug when trialling with a true monomer.
I've opened an issue to implement a feature that writes a status report, which can be read to check if an absent file indicates a true failure or a parsing error.