Skip to content

Commit 1f30d1e

Browse files
volginclaude
andcommitted
Fix MSA path resolution skipping the 'empty' sentinel value
The jwohlwend#500 change resolved all MSA paths relative to the input file, but the special 'empty' string (meaning no MSA) was also being resolved as a file path, breaking inference tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7003979 commit 1f30d1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/boltz/data/parse/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,15 +1122,15 @@ def parse_boltz_schema( # noqa: C901, PLR0915, PLR0912
11221122
msa = items[0][entity_type].get("msa", 0)
11231123
if (msa is None) or (msa == ""):
11241124
msa = 0
1125-
if msa != 0:
1125+
if msa not in (0, "empty"):
11261126
msa = str((parent / msa).resolve())
11271127

11281128
# Check if all MSAs are the same within the same entity
11291129
for item in items:
11301130
item_msa = item[entity_type].get("msa", 0)
11311131
if (item_msa is None) or (item_msa == ""):
11321132
item_msa = 0
1133-
if item_msa != 0:
1133+
if item_msa not in (0, "empty"):
11341134
item_msa = str((parent / item_msa).resolve())
11351135

11361136
if item_msa != msa:

0 commit comments

Comments
 (0)