-
Notifications
You must be signed in to change notification settings - Fork 1.5k
8498 trainerclassabstraction #8950
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
Open
e-mny
wants to merge
27
commits into
Project-MONAI:dev
Choose a base branch
from
e-mny:8498-trainerclassabstraction
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+313
−145
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d02da49
Refactor download_url test into TestDownloadUrl class
e-mny 867287e
Merge branch 'dev' into dev
e-mny 6296784
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8a6b6f6
Enoch Mok <enochmokny@gmail.com>
e-mny 66af964
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 43f508b
Merge branch 'dev' into dev
e-mny 834a8b4
Validate downloaded file integrity and raise ValueError on hash mismatch
e-mny 51a49b0
Validate downloaded file integrity and raise ValueError on hash misma…
e-mny 98ccecc
amended runtimeerrors -> valueerror
e-mny 29ec2fe
fixing code according to coderabbitai
e-mny 606e7ca
addressed bugs and issues raised in previous commit
e-mny 19ce7f6
Merge branch 'dev' into 8832-hashvalueerror
ericspod 88f8372
addressing Eric's comment in https://github.com/Project-MONAI/MONAI/p…
e-mny e9861d3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 453b238
removing duplicate line
e-mny 64b8e09
removed duplicated tests for download_url. updated existing tests for…
e-mny 096c6d0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e8e1f4b
Merge branch 'dev' into 8832-hashvalueerror
ericspod 5b0b5f4
Apply suggestions from code review
e-mny 3c61005
removed hash checking in a function that checks for download fails
e-mny 44f4d10
Merge branch 'dev' into 8832-hashvalueerror
e-mny 126fcc3
Merge branch 'dev' into 8832-hashvalueerror
ericspod 8974b4d
added HashCheckError
e-mny 32ebca7
refactor(engines): introduce SingleNetworkTrainer and DualNetworkTrai…
e-mny b014da5
Merge branch 'dev' into 8498-trainerclassabstraction
e-mny 731e0e2
adding according to coderabbit's suggestions
e-mny 54f5f60
adding according to coderabbit's suggestions
e-mny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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 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.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Fix the stale
Raisescontract for existing files.Line 235 now raises
HashCheckError(ValueError)for the pre-existing-file branch too, but theRaisessection still advertisesRuntimeErrorfor that path. The public contract is now inconsistent.Suggested diff
As per path instructions,
**/*.py:Docstrings should be present for all definition which describe each variable, return value, and raised exception in the appropriate section of the Google-style of docstrings.🤖 Prompt for AI Agents
Source: Path instructions