Repository navigation
Disable smoothing when smoothing cutoff is 0 - #77
Merged
Merged
Conversation
kou
force-pushed
the
smoothing-cutoff-zero
branch
from
October 6, 2026 06:16
9fdb03e to
19f0c0c
Compare
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Per-call negative cutoffs remain accepted, the action path lacks regression coverage, and the description is missing its required issue reference.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Updates smoothing semantics so a zero cutoff disables filtering.
Changes:
- Preserves explicit zero cutoffs for observations and actions.
- Rejects negative configured cutoffs.
- Adds tests and documentation.
PR description: Missing the required first line Fix GH-${ISSUE_NUMBER}.
| File | Description |
|---|---|
src/openarm_dataset/dataset.py |
Updates smoothing validation and cutoff handling. |
src/openarm_dataset/convert.py |
Documents the CLI zero-cutoff behavior. |
tests/test_dataset_0_4_0_qpos.py |
Tests smoothing disablement and validation. |
README.md |
Documents zero as disabling smoothing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
kou
force-pushed
the
smoothing-cutoff-zero
branch
from
October 6, 2026 06:22
19f0c0c to
bfdee27
Compare
kou
force-pushed
the
smoothing-cutoff-zero
branch
from
October 6, 2026 06:25
bfdee27 to
b283ef4
Compare
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The public API annotation conflicts with its documented None behavior, and the PR description lacks the required issue-linking first line.
Review effort: Balanced
Findings: 1
Resolved since last review (1)
`--smoothing-cutoff 0` didn't disable smoothing. `_apply_smoothing()` clamps the normalized cutoff to 0.01, so 0 applied a ~1.25 Hz low-pass filter. And `load_obs(cutoff=0)`/`load_action(cutoff=0)` fell back to the value set by `set_smoothing()`. Now 0 disables smoothing and a negative cutoff is rejected by `set_smoothing()`, `load_obs()` and `load_action()`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kou
force-pushed
the
smoothing-cutoff-zero
branch
from
October 6, 2026 06:29
b283ef4 to
d92b9fd
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.


--smoothing-cutoff 0didn't disable smoothing._apply_smoothing()clamps the normalized cutoff to 0.01, so 0 applied a ~1.25 Hz low-pass filter. Andload_obs(cutoff=0)/load_action(cutoff=0)fell back to the value set byset_smoothing().Now 0 disables smoothing and a negative cutoff is rejected by
set_smoothing().