Skip to content

Commit c14e390

Browse files
committed
we added "order" to the note-keys object so they do not just track the type anymore
1 parent 3e87d96 commit c14e390

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)