Skip to content

Fix CHOP division-by-zero, overhaul README, modernize build - #203

Merged
jealous merged 1 commit into
masterfrom
bugfix/chopZero
Feb 16, 2026
Merged

jealous merged 1 commit into
masterfrom
bugfix/chopZero

Conversation

@jealous

@jealous jealous commented Feb 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • CHOP indicator fix: Prevent log10 of zero/negative values when bars have identical OHLC prices (flat bars), which produced NaN values and RuntimeWarning
  • README overhaul: Fix typos and errors (broken TRIX formula, TEMA default window contradiction, duplicate RSI section, missing quotes in code examples, broken markdown link), add Quick Start tutorial with practical examples, add indicator summary table, reorganize indicators by category (Moving Averages, Momentum, Trend, Volatility, Volume, Oscillators, Utilities), add missing indicators (CMO, SMMA) to the intro list, update Python compatibility info
  • Build modernization: Migrate from setup.py/setup.cfg to pyproject.toml with setuptools-scm, update GitHub Actions to v4 with fetch-depth 0
  • MANIFEST.in: Remove stale *.rst/*.cfg patterns, add *.toml
  • CLAUDE.md: Document column resolution order and additional naming patterns

Test plan

  • flake8 stockstats.py test.py passes
  • pytest --cov=stockstats test.py — all 129 tests pass (96% coverage)
  • New test_chop_flat_bars test validates the CHOP fix
  • Visual review of rendered README on GitHub

🤖 Generated with Claude Code

- Fix log10 of zero/negative values in CHOP indicator for flat bars
- Overhaul README: fix typos, add Quick Start tutorial, add summary
  table, reorganize indicators by category, fix TRIX/TEMA docs,
  remove duplicate RSI section, update Python compatibility info
- Migrate from setup.py/setup.cfg to pyproject.toml
- Update CI: actions/checkout@v4, actions/setup-python@v4, fetch-depth 0
- Update MANIFEST.in for new build config
- Expand CLAUDE.md with column resolution docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jealous
jealous merged commit 0f5b36b into master Feb 16, 2026
4 checks passed
@jealous
jealous deleted the bugfix/chopZero branch February 16, 2026 02:47
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