-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description If CAREamics is used in a multithreaded application (e.g. napari plugin), then we need a way to stop the training programmatically. This PR add a `stop_training` method to the `CAREamist`. Additionally, this PR removes the unused parameter `experiment_name` from the CAREamist. - **What**: Add stop training method. - **Why**: Enable stopping training in multithreaded applications (e.g. napari) - **How**: Add `stop_training` method that raises the `should_stop` flag of Lightning. ### Changes Made - **Modified**: `careamist.py`, by adding the `stop_training` function and cleaning up unused keywords. --- **Please ensure your PR meets the following requirements:** - [x] Code builds and passes tests locally, including doctests - [x] New tests have been added (for bug fixes/features) - [x] Pre-commit passes - [ ] PR to the documentation exists (for bug fixes / features)
- Loading branch information
1 parent
7435ce2
commit a7f88cd
Showing
2 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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 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