[AUTO-MERGE] Removed unused input argument in create_results_writer#733
Merged
[AUTO-MERGE] Removed unused input argument in create_results_writer#733
create_results_writer#733Conversation
… the call sites.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes an unused dataset argument from create_results_writer (and the related create_save_batch_callback factory), and updates Hyrax verbs to call the simplified APIs when writing inference/test/UMAP/engine results.
Changes:
- Update
create_results_writerto accept onlyresult_dirand remove the unused dataset parameter. - Update
create_save_batch_callbackto accept onlyresults_dirand adjust its internal writer creation. - Update call sites in
infer,test,umap, andengineverbs to use the new signatures.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/hyrax/verbs/umap.py | Update results-writer creation to pass only results_dir. |
| src/hyrax/verbs/test.py | Update save-batch callback creation to pass only results_dir. |
| src/hyrax/verbs/infer.py | Update save-batch callback creation to pass only results_dir. |
| src/hyrax/verbs/engine.py | Update results-writer creation to pass only result_dir. |
| src/hyrax/pytorch_ignite.py | Remove dataset param from create_save_batch_callback and simplify writer creation. |
| src/hyrax/data_sets/result_factories.py | Remove unused dataset param from create_results_writer and drop unused import. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #733 +/- ##
==========================================
- Coverage 64.17% 64.16% -0.01%
==========================================
Files 61 61
Lines 5990 5989 -1
==========================================
- Hits 3844 3843 -1
Misses 2146 2146 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Click here to view all benchmarks. |
create_results_writercreate_results_writer
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.
There was an unused input parameter on
create_results_writer, so I've removed that and chased down the various places it was used.