Skip to content

Conversation

@woodsh17
Copy link
Member

@woodsh17 woodsh17 commented Nov 18, 2025

The original PR for this was #386 from OrangeCatzhang. This PR is to fix the error "AttributeError: 'bool' object has no attribute 'scaffold_list'" when running in scaffoldguided mode.

The first error is fixed by passing the full composed config object (conf) into BlockAdjacency instead of passing the scaffoldguided sub-node. BlockAdjacency expects the full config and to access conf.scaffoldguided. internally, so passing the sub-node caused self.conf.scaffoldguided to resolve to the nested boolean field (scaffoldguided.scaffoldguided), which produced the AttributeError when code tried to read .scaffold_list. Passing teh full conf fixes that mismatch.

The other fix is to add initialization of cyclic_reses to ScaffoldedSampler. I have slightly updated what was in the original PR to avoid code duplication. I added a helper function to the Sampler class and then call that in both Sampler and ScaffoldedSampler to initialize cyclic_reses. I also removed the changes to the scaffoldedguided flag from the original PR, so the CLI stays the same.

OrangeCatzhang and others added 3 commits August 11, 2025 09:24
…gn_ppi_scaffold.sh. The solutions to issues 272 and 273 did not fully address the issue.
…oldguided=True instead of scaffoldguided_enabled
@woodsh17 woodsh17 requested a review from rclune November 18, 2025 19:57
Copy link
Member

@rclune rclune left a comment

Choose a reason for hiding this comment

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

LGTM

@woodsh17 woodsh17 merged commit 9535f19 into main Nov 20, 2025
2 of 3 checks passed
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.

4 participants