fix(api): expose trend_analysis at top level - #82
Open
BnJam wants to merge 1 commit into
Open
Conversation
trend_analysis was listed in __all__ but never bound, breaking 'from eo_processor import trend_analysis' and star-imports. Import it from _core, add a thin wrapper and TrendSegment alias, add the type stub, tests, and update README examples to use the public API.
Open
7 tasks
Owner
Author
|
CI checks failed. Blocked this PR and filed fix-up issue #83. A fix-up PR targeting branch |
This was referenced Aug 1, 2026
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.
Closes #81
Summary
trend_analysiswas listed in__all__(python/eo_processor/init.py:151) but never imported or defined, sofrom eo_processor import trend_analysisand star-imports raised ImportError.Changes
trend_analysis as _trend_analysisandTrendSegment as _TrendSegmentfrom._corein python/eo_processor/init.pydef trend_analysis(y, threshold)following thelinear_regressionpattern, plus aTrendSegment = _TrendSegmentaliastrend_analysisstub andclass TrendSegment(start_index, end_index, slope, intercept) to init.pyiTests
tests/test_trends.py (new coverage for the function)
Docs
Updated: README.md, docs/source/README.md, type stubs
Checklist