- src/boltz/data/parse/schema.py line 507:
chain_type = const.chain_type_ids[entity_type.upper()]
. The variableentity_type
could be "ligand" in this branch, resulting in aKeyError
. This should use thechain.type
from theparsed_chain
object.
--- a/src/boltz/data/parse/schema.py
+++ b/src/boltz/data/parse/schema.py
@@ -504,7 +504,7 @@
parsed_chain = ParsedChain(
entity=entity_id,
residues=residues,
- type=const.chain_type_ids["NONPOLYMER"],