Add conditional statement for including sampler.idx_pdb for writepdb since ScaffoldedSampler.sample_init() doesn't set idx_pdb.

This commit is contained in:
woodsh17
2025-09-29 13:03:27 -05:00
parent e220924202
commit caa732e2e1

View File

@@ -141,7 +141,7 @@ def main(conf: HydraConfig) -> None:
sampler.binderlen,
chain_idx=sampler.chain_idx,
bfacts=bfacts,
idx_pdb=sampler.idx_pdb
**({"idx_pdb": sampler.idx_pdb} if hasattr(sampler, "idx_pdb") else {})
)
# run metadata