Skip to content

improve build annotation by read --ddg_dir in place instead of copying it#95

Merged
St3451 merged 1 commit into
masterfrom
perf/skip-ddg-input-copy
May 26, 2026
Merged

improve build annotation by read --ddg_dir in place instead of copying it#95
St3451 merged 1 commit into
masterfrom
perf/skip-ddg-input-copy

Conversation

@St3451
Copy link
Copy Markdown
Collaborator

@St3451 St3451 commented May 26, 2026

Summary

build-annotations --ddg_dir <path> used to copy the entire ΔΔG bundle into a temp directory, parse it, then delete the copy. For multi-GB bundles on networked storage this added ~10 minutes (silently, the copy progress log was DEBUG-only). The copy was pure overhead — nothing in the workflow modifies the input directory.

Changes

  • build_annotations.py: --ddg_dir is read in place. Caller now controls cleanup via a cleanup_input flag — True only for the download path.
  • stability_change.py: rm_dir(input_path) lifted out of parse_ddg_rasp (lifecycle is the caller's concern). Unused rm_dir import removed.
  • globals.py: copy_dir deleted (now dead code).
  • Log polish: misleading "Completed!" after input-prep replaced with branch-specific messages; duplicate "Parsing completed!" line dropped; trailing newline added to stability_change.py.

Copilot AI review requested due to automatic review settings May 26, 2026 21:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the stability-change (ΔΔG) annotation pipeline to avoid copying user-provided RaSP prediction directories, and simplifies shared globals by removing an unused directory-copy helper.

Changes:

  • Stop deleting the ΔΔG input directory inside parse_ddg_rasp (leaving cleanup to the caller).
  • Update build_annotations.get_annotations() to parse ΔΔG directly from a user-supplied directory, and only clean up when the ΔΔG data was downloaded by the tool.
  • Remove the copy_dir helper from scripts/globals.py and update imports accordingly.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
scripts/plotting/stability_change.py Removes internal cleanup of the input directory after parsing ΔΔG.
scripts/plotting/build_annotations.py Switches from copying ΔΔG inputs to reading in-place; adds conditional cleanup for downloaded inputs.
scripts/globals.py Removes the now-unused copy_dir helper function.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/plotting/build_annotations.py
@St3451 St3451 changed the title refactor: remove copy_dir function and update build_annotations to re… read user-supplied --ddg_dir in place instead of copying to a temp directory May 26, 2026
@St3451 St3451 changed the title read user-supplied --ddg_dir in place instead of copying to a temp directory improve build annotation by read --ddg_dir in place instead of copying it May 26, 2026
@St3451 St3451 merged commit 3f355a5 into master May 26, 2026
1 check passed
St3451 added a commit that referenced this pull request May 26, 2026
fix: clearer logs in build-annotations ΔΔG step (follow-up to #95)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants