E-TE0505 — Ordering comparison on category labels
Error Type |
|
|---|---|
Phase |
type checking the model |
Python exception |
|
Message
The comparison operator `{...}` is not supported for category-label values.
Only `==` and `!=` are allowed.
Cause
An ordering operator (<, >, <=, or >=) was applied to category-label values. Category labels are unordered, so only equality tests make sense.
Fix
Compare category labels only with == or !=. If you need an ordering, model the quantity with numeric values instead of category labels.