-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim filtered table to original time range in TabOpLowPassFilter #3969
Conversation
CHECK(out.getNumRows() == 6); | ||
CHECK(out.getIndependentColumn().front() == 1); | ||
CHECK(out.getIndependentColumn().back() == 6); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: missing newline at eof
… fix missing EOL; update changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tkuchida! Requesting a quick re-review since I made some additional changes on top of the requested fix.
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @tkuchida)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One optional suggestion 👇
OpenSim/Simulation/TableProcessor.h
Outdated
TabOpLowPassFilter() { constructProperty_cutoff_frequency(-1); } | ||
OpenSim_DECLARE_PROPERTY(trim_to_original_time_range, bool, | ||
"Trim the rows of the output table to match the original table's " | ||
"time range after padding and filtering (default: true)."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps delete "after padding" as I don't think the user-facing documentation explains padding (what/why).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @tkuchida)
OpenSim/Simulation/TableProcessor.h
Outdated
TabOpLowPassFilter() { constructProperty_cutoff_frequency(-1); } | ||
OpenSim_DECLARE_PROPERTY(trim_to_original_time_range, bool, | ||
"Trim the rows of the output table to match the original table's " | ||
"time range after padding and filtering (default: true)."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Merging this. Thanks @tkuchida! |
Fixes issue #3287
Brief summary of changes
Updates
TabOpLowPassFilter
to trim the table back to the original time range.Testing I've completed
Added a unit test to
testTableProcessor.cpp
.Looking for feedback on...
CHANGELOG.md (choose one)
This change is