Fix/issue 52 large backbones - #58
Conversation
|
🧙 Sourcery is reviewing your pull request! Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
We encountered an error and are unable to review this PR. We have been notified and are working to fix it.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (10)
📒 Files selected for processing (30)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📝 WalkthroughWalkthroughOpenCLATURA now generates systematic chain stems for lengths 1–1000, updates consumers and tests, refreshes generated evaluation outputs and metrics, bumps the version to 0.2.0, and updates documentation and ignore rules. ChangesSystematic stem generation
Estimated code review effort: 3 (Moderate) | ~25 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@simonmb thanks a lot for the contribution! for now we are merging to the tests branch if all tests pass, and then we will make a release to main. |
|
Thanks for the contribution, @simonmb! Supporting chains longer than 30 skeletal atoms is important, and the generated-stem implementation works well for the existing forward-lookup API. At the moment,
The first use fits this PR well: callers that already know the atom count can continue using I am less convinced by expanding the reverse-recognition loops from 30 explicit entries to as many as 1,000 generated candidates. Alkoxy formattingsubstituted_alkoxy_prefix() previously iterated over the 30 entries in The PR now iterates downward from 1000 and calls Could this reverse-recognition logic instead be encapsulated in def terminal_stem(name: str) -> Stem | None:
...or: def length_for_alkyl_suffix(name: str) -> int | None:
...This could use a lazily constructed reverse index rather than scanning all supported lengths on every call. Returning the matching stem or length would be more useful here than only returning a boolean. Von Baeyer recognitionSimilarly, von_baeyer_cycle_count() needs to convert the numerical prefix before The PR handles this by testing Could we add a focused reverse-lookup API alongside the generator? For example: def length_for_basic_prefix(prefix: str) -> int | None:
...It would also be useful to add regression tests for:
|
Hey, thanks for openclatura. This PR fixes issue #52 and adds support to backbones of 1000 in size.
Summary by Sourcery
Extend systematic backbone stem support and improve robustness for very long carbon chains and rings up to 1000 atoms.
New Features:
Bug Fixes:
Enhancements:
Build:
Documentation:
Tests:
Summary by CodeRabbit
New Features
Documentation
Bug Fixes
Evaluation