Skip to content

Commit 4e71530

Browse files
authored
Merge pull request #141 from VirtualFlyBrain/master
Update validation in CurationWriter to use short_form for unrestricte…
2 parents 55048f7 + 8d9c93d commit 4e71530

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/vfb/curation/curation_writer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,13 @@ def write_rows(self, verbose=False, start='100000', allow_duplicates=False):
278278
if verbose:
279279
print(f" ✗ {entity_name}: {yaml_value} not in class_lookup (will fail per-row)")
280280
else:
281-
# Fields without restriction: validate by label directly (e.g., DataSet)
282-
# These are passed as-is to add_anatomy_image_set()
281+
# Fields without restriction: validate by short_form (e.g., DataSet)
282+
# These are passed as short_forms to add_anatomy_image_set()
283+
# add_anatomy_image_set() defaults to match_on='short_form'
283284
self.pattern_writer.ec.roll_entity_check(
284285
labels=labels,
285286
query=yaml_value,
286-
match_on='label'
287+
match_on='short_form'
287288
)
288289

289290
# Check if it exists - only cache if validation succeeds

0 commit comments

Comments
 (0)