Repository navigation
Morphology class check cycles - #2112
Merged
Merged
Conversation
|
|
Overall Grade |
Security Reliability Complexity Hygiene Coverage |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Python | Nov 18, 2026 8:43p.m. | Review ↗ | |
| Code coverage | Nov 18, 2026 8:46p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
8 tasks done
joshqsumner
force-pushed
the
morphology-class-check-cycles
branch
2 times, most recently
from
November 13, 2026 15:38
b4cd045 to
0493736
Compare
nfahlgren
force-pushed
the
morphology-class-check-cycles
branch
from
November 14, 2026 03:29
be7ab76 to
20e141b
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The changes leave a broken MkDocs navigation link and remove zero-cycle regression coverage without testing the non-debug cycles path.
1 open issue
What changed in this PR
This PR continues the morphology restructuring in #2097, building on #2111 by moving cycle detection into the Morph class.
Changes:
- Replaces
check_cycleswithMorph.cycles, returning a count and optionally plotting detected cycles. - Updates documentation and removes references to automatic cycle-count observations.
- Adds class-based cycle tests and resets shared color state in segment-combination tests.
| File | Description |
|---|---|
tests/plantcv/morphology/test_segment_combine.py |
Resets shared color state around tests. |
tests/plantcv/morphology/test_morph_class.py |
Tests cycle counts and debug-image creation. |
tests/plantcv/morphology/test_check_cycles.py |
Removes standalone cycle-detection tests. |
plantcv/plantcv/morphology/morph_class.py |
Adds the cycles property and detection helper. |
plantcv/plantcv/morphology/check_cycles.py |
Removes the standalone function. |
plantcv/plantcv/morphology/__init__.py |
Removes the check_cycles export. |
docs/updating.md |
Adds migration guidance for the removed function. |
docs/segment_combine.md |
Updates cycle-detection workflow guidance. |
docs/params.md |
Updates the cycle-plotting reference. |
docs/outputs.md |
Removes the old function from output-producing APIs. |
docs/output_measurements.md |
Removes the automatic cycle-observation reference. |
docs/morphology_class.md |
Documents cycle counts and conditional plotting. |
docs/check_cycles.md |
Removes the standalone function’s documentation. |
Review effort: Balanced
nfahlgren
force-pushed
the
morphology-class-check-cycles
branch
from
November 14, 2026 17:01
5d279a2 to
66b36e7
Compare
nfahlgren
approved these changes
Nov 14, 2026
joshqsumner
force-pushed
the
morphology-class-check-cycles
branch
2 times, most recently
from
November 17, 2026 15:00
5baa035 to
1b357c9
Compare
nfahlgren
force-pushed
the
morphology-class-check-cycles
branch
from
November 17, 2026 19:36
1b357c9 to
bfe97cb
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
nfahlgren
force-pushed
the
morphology-class-check-cycles
branch
2 times, most recently
from
November 18, 2026 20:38
3cb3048 to
24aa3d1
Compare
nfahlgren
force-pushed
the
morphology-class-check-cycles
branch
from
November 18, 2026 20:42
24aa3d1 to
3cb3048
Compare
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.

Describe your changes
Adds
cyclesattribute to thepcv.morphology.morphclass to replace thepcv.morphology.check_cyclesfunction.Type of update
This is refactoring
Associated issues
Part of #2097
Additional context
Follows PR #2111
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.ymlupdating.md