Skip to content

Use public hamma.diagnostic_data in NoiseDiag plugin (low priority)#67

Draft
pbitzer wants to merge 1 commit into
0.4.xfrom
feature/noise-diag-diagnostic-data
Draft

Use public hamma.diagnostic_data in NoiseDiag plugin (low priority)#67
pbitzer wants to merge 1 commit into
0.4.xfrom
feature/noise-diag-diagnostic-data

Conversation

@pbitzer

@pbitzer pbitzer commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Switches the NoiseDiag plugin (plugins/noise_diag.py) from the private hamma.header.core._diagnostic_data to the public hamma.diagnostic_data (released in hamma 0.3.0). This is the last consumer in the shared-noise-primitive consolidation — the on-demand scripts/hamma_noise.py swap already shipped in 0.4.0 (PR #52, commit ffa73c2).

  • plugins/noise_diag.py: from hamma import diagnostic_data; call site uses it, arguments unchanged.
  • tests/python/test_noise_diag.py updated to the new path. 11 passed.
  • Pure import/call rename — no behavior change (diagnostic_data returns the same (median, max, min, noise)).

Draft / no rush

NoiseDiag works as-is on 0.4.0: hamma 0.3.0 deliberately retains _diagnostic_data as a deprecated alias, so the plugin resolves on every sensor (0.2a and 0.3.0). This is hygiene (use the public name), not a bug fix — fine to ride the next release with other content rather than cut a release just for it.

Dependency / rollout

Once merged + deployed, the plugin imports the public name directly, so it needs hamma >= 0.3.0 on the sensor — the same dependency 0.4.0 already declares. Keep it aligned with the coordinated fleet-to-0.3.0 rollout.

🤖 Generated with Claude Code

hamma 0.3.0 made diagnostic_data public; switch the plugin and its
test patches from the private _diagnostic_data to the top-level re-export.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant