ENH: Add fps option to ConvertImageToUSD#59
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 (6)
✨ 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.
Pull request overview
Adds a configurable playback frame rate to the Image-to-USD workflow so animated USD outputs can set TimeCodesPerSecond consistently with user expectations.
Changes:
- Add
times_per_secondparameter toWorkflowConvertImageToUSDand forward it toConvertVTKToUSD. - Expose the setting in the CLI as
--fps(mapped totimes_per_second) and add smoke tests verifying help + argument forwarding. - Update BYOD docs and regenerate
docs/API_MAP.mdto reflect the public API change.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/physiomotion4d/workflow_convert_image_to_usd.py |
Adds times_per_second to the workflow init and forwards it during USD generation. |
src/physiomotion4d/cli/convert_image_to_usd.py |
Adds --fps CLI argument and passes it into the workflow as times_per_second. |
tests/test_workflow_convert_image_to_usd.py |
New unit test asserting _create_usd_files() forwards times_per_second to ConvertVTKToUSD. |
tests/test_cli_smoke.py |
New smoke tests ensuring --fps appears in help and is forwarded correctly. |
docs/cli_scripts/byod_tutorials.rst |
Documents the new --fps option and Python times_per_second usage. |
docs/API_MAP.md |
Regenerated API map reflecting the updated workflow signature and added tests. |
Comments suppressed due to low confidence (1)
src/physiomotion4d/workflow_convert_image_to_usd.py:75
- Adding
times_per_secondbeforelog_levelin the__init__signature is a backwards-incompatible change for any callers that passlog_level(or later args) positionally—those values will now be interpreted as FPS instead. To preserve compatibility, consider makingtimes_per_secondkeyword-only (e.g., insert a*before it) or move it after the existing parameters so positional argument order is unchanged.
def __init__(
self,
input_filenames: list,
contrast_enhanced: bool,
output_directory: str,
project_name: str,
reference_image_filename: Optional[str] = None,
number_of_registration_iterations: Optional[int] = 1,
segmentation_method: str = "ChestTotalSegmentator",
registration_method: str = "ICON",
times_per_second: float = 24.0,
log_level: int | str = logging.INFO,
save_registered_images: bool = True,
save_registration_transforms: bool = True,
save_labelmaps: bool = True,
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #59 +/- ##
==========================================
+ Coverage 30.77% 31.23% +0.45%
==========================================
Files 50 50
Lines 6826 6828 +2
==========================================
+ Hits 2101 2133 +32
+ Misses 4725 4695 -30
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:
|
No description provided.