added example to the docstring for rolling with parameters#682
added example to the docstring for rolling with parameters#682andreas-wuestefeld wants to merge 2 commits into
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe rolling function docstring is expanded with a new example demonstrating how to use ChangesRolling Function Documentation
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@dascore/proc/rolling.py`:
- Around line 337-343: Fix typos and improve naming in the example: change the
comment "to allow arguments being parsed to the 'apply' method..." to "to allow
arguments being passed to the 'apply' method or the rolling function", fix "ot"
to "to" in the comment before applying the function, and rename the output
variable med_patch to a clearer name like pct_patch (or percentile_patch) to
reflect that it holds the percentile result; references to functions/vars to
update include _fun, _rolling_percentile, percentile, patch, get_example_patch,
rolling, and med_patch.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: edc526eb-b9fa-4a4e-ac85-c6fcdabb334a
📒 Files selected for processing (1)
dascore/proc/rolling.py
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #682 +/- ##
=======================================
Coverage 99.93% 99.93%
=======================================
Files 135 135
Lines 11685 11704 +19
=======================================
+ Hits 11677 11696 +19
Misses 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The failure is related to #684; the docs build fine, it is just an issue with permissions to post the comment linking to the build, so no worries there. You should be able to push you branches directly to The added doc example is fine, but I wonder if we ought to just add kwargs and args to If you want, just change |
Yes, I was wondering the same, but I was wondering if you had any reason or obstacle to not having it implemented. |
|
Hey @andreas-wuestefeld, I just took a quick look. Overall these are great contributions to DASCore. I found the straight-forward FBE elegant, in other codes I had used stft but the bandpass approach is more straightforward and probably more efficient. I have a few suggestions I will try to post tomorrow. edit: this comment was intended for #681 |
This is updated documentation based on my experience. The rolling-function example currently does not explain how to implement a custom function with additional parameters.
Maybe there is a more efficient way to do it than the solution here?
Checklist
I have (if applicable):
Summary by CodeRabbit
rollingfunction documentation with a new example demonstrating how to use custom functions with additional parameters in rolling operations.