Skip to content

Commit f6be04c

Browse files
authored
Merge pull request #36 from neurostuff/fix/annotation_order
[FIX] Handle "order" in note_keys
2 parents 3e87d96 + c14e390 commit f6be04c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compose_runner/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ def apply_filter(self, studyset, annotation):
198198
weights = self.cached_specification.get("weights", [])
199199
weight_conditions = {w: c for c, w in zip(conditions, weights)}
200200

201+
# since we added "order" to annotations
202+
if isinstance(column_type, dict):
203+
column_type = column_type.get("type")
204+
201205
if not (conditions or weights) and column_type != "boolean":
202206
raise ValueError(
203207
f"Column type {column_type} requires a conditions and weights."

0 commit comments

Comments
 (0)