-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add keep_selected parameter, and corresponding code to keep only the selected exps (and remove all the other ones) * test keep_selected_by_name * test keep_selected_by_rev * test keep_selected multiple, by name * test keep all by name * test keep by rev, with num=2 * added option to cli * refactoring to meet pr needs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixed test_experiments to add keep_selected=False to remove tests * rename parameter to match cli option * follow the normal path, then invert the selection before removing * fixed tests for list ordering + fixed test with non existent name, it didn't make sense to delete everything if an exp name did not exist * changed cli option comment * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixed typing issue * updated parameter name * removed handling queued experiments (since --queue would remove them all) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * code simplification, added __eq__ and __hash__ to be able to compare ExpRefs, updated and parametrized tests. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixed linting issues * - --keep and --queue together raise an InvalidArgumentError - added a test to check if the error is raised - fixed CLI message * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * re-run gh tests. Some tests which did not involve my changes started failing while they were passing fine before. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
64ccd9c
commit 368c785
Showing
6 changed files
with
118 additions
and
2 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
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
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