- src/boltz/data/parse/schema.py line 507:
chain_type = const.chain_type_ids[entity_type.upper()]. The variableentity_typecould be "ligand" in this branch, resulting in aKeyError. This should use thechain.typefrom theparsed_chainobject.
--- 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"],