Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compose_runner/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ def apply_filter(self, studyset, annotation):
weights = self.cached_specification.get("weights", [])
weight_conditions = {w: c for c, w in zip(conditions, weights)}

# since we added "order" to annotations
if isinstance(column_type, dict):
column_type = column_type.get("type")

if not (conditions or weights) and column_type != "boolean":
raise ValueError(
f"Column type {column_type} requires a conditions and weights."
Expand Down