Skip to content

[DB-6] Artifact count not syncing between signal view and data quality chart#73

Merged
nmy2103 merged 1 commit into
devfrom
bug/DB-6
Jun 18, 2026
Merged

[DB-6] Artifact count not syncing between signal view and data quality chart#73
nmy2103 merged 1 commit into
devfrom
bug/DB-6

Conversation

@pateltisha24

@pateltisha24 pateltisha24 commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

When beats are marked as unusable in the Beat Editor, the artifact count displayed in the Data Quality chart does not match the artifact markers shown in the Signal View.

This is caused by two bugs in callbacks.py:

  • The ends array was built using np.insert instead of np.append, causing segment boundaries to be mismatched when multiple unusable segments exist basically, artifact cleanup ran on the wrong index ranges.

  • data_edited was saved to disk before the unusable segment cleanup ran, so the chart and signal view were reading from two different states of the same data.

Fix:

  • Changed np.insert to np.append when constructing ends to correctly pair segment boundaries.

  • Moved data_edited.to_csv() to after the cleanup block so both views reflect the same state.
    not done

Acceptance Criteria:

  • Artifact count in the Data Quality chart matches the artifact markers in the Signal View after marking beats as unusable

  • Segment boundaries are correctly paired when multiple unusable segments exist

bug DB-6

@pateltisha24 pateltisha24 requested review from nmy2103 and ynwtnb May 13, 2026 19:07
@pateltisha24 pateltisha24 self-assigned this May 13, 2026
@pateltisha24 pateltisha24 changed the title Summary [DB-6] Artifact count not syncing between signal view and data quality chart May 13, 2026
@pateltisha24 pateltisha24 added the bug Something isn't working label May 13, 2026

@ynwtnb ynwtnb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@nmy2103 nmy2103 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you!

@nmy2103 nmy2103 merged commit aa2d681 into dev Jun 18, 2026
@nmy2103 nmy2103 deleted the bug/DB-6 branch June 18, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DB-6] Artifact metrics are not correctly reflected after manual beat edits with 'Unusable' markings

3 participants