Skip to content

[Documentation] Update GIFs and notebook tutorials for 0.835 flat detection threshold #233

Description

@RussellSB

Summary

The flat detection threshold in process_signals.py has been changed from 0.50x to 0.835x min_nonzero_std (PR #224). This is a minor sensitivity reduction that makes trend detection more robust to small dips, but it changes some segment boundaries in the series_synthetic gradual column.

Impact

The following assets need to be updated to reflect the new segment boundaries:

GIFs in docs/img/plots/

  • Gradual trends GIF — segment boundaries shifted (Mar 15-17 Flat removed, Up extends to Mar 17)
  • Noise examples GIF — some noise edge case boundaries shifted

Notebook tutorials

  • Gradual trends notebook — uses series_synthetic gradual column, segment boundaries will differ
  • Noise examples notebook — some noise edge case boundaries shifted

Static documentation pages

  • README.md — contains copy-pasted print_summary() output and segment table with the old boundaries
  • docs/index.md — docs home page with identical example output blocks

What changed

Before After Reason
9 segments (3 Up, 3 Down, 3 Flat) 8 segments (3 Up, 3 Down, 2 Flat) Mar 15-17 Flat merged into Up
Up Feb 10 – Mar 14 Up Feb 10 – Mar 17 Extended by 3 days
Flat Mar 15-17 present Flat Mar 15-17 absent Threshold too low to catch this region

Action required

  1. Regenerate GIFs in docs/img/plots/ for gradual and noise examples
  2. Update notebook tutorials that display segment boundaries for the gradual column
  3. Update copy-pasted example output in README.md and docs/index.md
  4. Verify that documentation examples still make sense with the new boundaries

Reference

PR #224: fix: detect long gradual ramps truncated by false flat detection

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationpriorityIssue to be prioritised before rest

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions