Repository navigation
fix(inference): equipment type - #15
Merged
Merged
Conversation
The equipment model predicts any alarm. On a channel without an incident class that is an equipment failure, so write EQUIPMENT_FAILURE there; on a classed channel it mixes faults with incidents, so keep CHANNEL_EVENT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Equipment model features do not carry the raw sensor type, so every channel fell to EQUIPMENT_FAILURE. Read the classed channel set from dim_channels_current at start and on each registry reload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira
HACK-183
Changes
EQUIPMENT_FAILUREonly for channels whose sensor type has no incident class (UPS, fans, phases…). On classed channels its target mixes faults with real incidents, so it keepsCHANNEL_EVENT, which Backend hides as LEGACY.CHANNEL_EVENT, so after Backend #66 the «Оборудование» tab on the stand was empty.CHANNEL_EVENTrows of classless channels.Verification
py_compilepasses; mapping checked: ИБП/Вентилятор → EQUIPMENT_FAILURE, Датчик дыма/КД АВ → CHANNEL_EVENT.test_classless_channel_writes_equipment_failure; local pytest unavailable (ML/.venv is Python 3.13, pgserver needs ≤3.12) — CI runs the suite.🤖 Generated with Claude Code