Rename model_inputs to data_request with deprecation handling#606
Rename model_inputs to data_request with deprecation handling#606gitosaurus merged 6 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request successfully renames model_inputs to data_request throughout the Hyrax codebase with comprehensive backward compatibility support.
Changes:
- Implemented deprecation logic with clear warning messages for users still using
model_inputs - Updated configuration files, error messages, docstrings, and comments to use new terminology
- Added comprehensive tests for backward compatibility and deprecation behavior
- Updated all documentation (notebooks, RST files) and benchmarks to use
data_request
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/hyrax/data_sets/data_provider.py | Core deprecation logic with fallback support for model_inputs, updated error messages and docstrings |
| src/hyrax/hyrax_default_config.toml | Added [data_request] section and marked [model_inputs] as deprecated |
| src/hyrax/data_sets/data_set_registry.py | Updated error message to reference data_request |
| src/hyrax/data_sets/hyrax_csv_dataset.py | Updated docstring example to use data_request |
| src/hyrax/pytorch_ignite.py | Updated comment to reference data_request |
| src/hyrax/verbs/engine.py | Updated comment to reference data_request |
| tests/hyrax/test_data_provider.py | Added three new tests for deprecation behavior and updated existing test assertions |
| tests/hyrax/test_pytorch_ignite.py | Updated error message assertion to check for data_request |
| docs/pre_executed/*.ipynb | Updated variable names and explanatory text in documentation notebooks |
| docs/getting_started.rst | Updated code examples to use data_request_definition |
| benchmarks/*.py | Updated benchmark configurations to use data_request |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #606 +/- ##
==========================================
+ Coverage 62.31% 62.37% +0.06%
==========================================
Files 53 53
Lines 5235 5244 +9
==========================================
+ Hits 3262 3271 +9
Misses 1973 1973 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Click here to view all benchmarks. |
…r model_inputs Co-authored-by: gitosaurus <6794831+gitosaurus@users.noreply.github.com>
Co-authored-by: gitosaurus <6794831+gitosaurus@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: gitosaurus <6794831+gitosaurus@users.noreply.github.com>
6a63d2f to
3aa21d6
Compare
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: gitosaurus <6794831+gitosaurus@users.noreply.github.com>
drewoldag
left a comment
There was a problem hiding this comment.
This all looks correct to me. If you haven't already, I would recommend running the getting_started notebook locally just to ensure that it runs through at least the train and infer steps.
To be clear there would be no need to add the output of that run to this PR, it would just be a local smoke check.
Smoke test clear! |
* Update source code to use data_request with backward compatibility for model_inputs Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gitosaurus <6794831+gitosaurus@users.noreply.github.com>
Rename model_inputs to data_request ✅
Summary
Successfully renamed
model_inputstodata_requestthroughout the Hyrax codebase with full backward compatibility and deprecation warnings.Completed Tasks
model_inputsoccurrences (115+ references found)data_provider.py:model_inputsconfig key with deprecation warningdata_requestdata_requesthyrax_default_config.toml)data_set_registry.py(error message)hyrax_csv_dataset.py(docstring)pytorch_ignite.py(comments)engine.py(comments)model_inputsdata_requestworks without warningChanges Made
Core Functionality:
data_provider.py: Added backward compatibility logic with deprecation warningshyrax_default_config.toml: Added[data_request]section with clear deprecation noticeSource Code:
Tests:
model_inputsdata_requestDocumentation & Benchmarks:
Security Summary
✅ CodeQL scan completed - no security vulnerabilities detected
Backward Compatibility
model_inputscontinues to workOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.