Commit 7cafa20
fix(FastSense): handle single-point thresholds in addSensor
When a resolved threshold has only 1 point (e.g. from a single-state
condition), addThreshold misinterpreted it as scalar form because
numel(X) <= 1. Use the scalar addThreshold(value, ...) form for
single-point thresholds to avoid passing Y as a name-value key.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 03faeeb commit 7cafa20
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
584 | 595 | | |
585 | 596 | | |
586 | 597 | | |
| |||
0 commit comments