From 99b1db26b88944321c7f0a2ae29e20ad9099a08e Mon Sep 17 00:00:00 2001 From: revital Date: Mon, 30 Oct 2023 10:28:56 +0200 Subject: [PATCH] Revert "edits" This reverts commit 74c3ba08b575170bdf2f6726fd2928335f6da4d5. --- clearml/model.py | 6 +++--- clearml/task.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/clearml/model.py b/clearml/model.py index 93e98e79..1736fff8 100644 --- a/clearml/model.py +++ b/clearml/model.py @@ -1427,10 +1427,10 @@ class Model(BaseModel): :param project_name: Optional, filter based project name string, if not given query models from all projects :param model_name: Optional Model name as shown in the model artifactory - :param tags: Filter based on the requested list of tags (strings). - To exclude a tag add "-" prefix to the tag. Example: ['production', 'verified', '-qa']. + :param tags: Filter based on the requested list of tags (strings) + To exclude a tag add "-" prefix to the tag. Example: ['production', 'verified', '-qa'] To include All tags (instead of the default Any behaviour) use "__$all" as the first string, example: - ["__$all", "best", "model", "ever"]. + ["__$all", "best", "model", "ever"] To combine All tags and exclude a list of tags use "__$not" before the excluded tags, example: ["__$all", "best", "model", "ever", "__$not", "internal", "__$not", "test"]. See https://clear.ml/docs/latest/docs/clearml_sdk/model_sdk#tag-filters for more information. diff --git a/clearml/task.py b/clearml/task.py index 59a51ebc..c9ac7c5c 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -935,9 +935,9 @@ class Task(_Task): listed tags). To exclude a tag add "-" prefix to the tag. Example: ["best", "-debug"]. The default behaviour is to join all tags with a logical "OR" operator. To join all tags with a logical "AND" operator instead, use "__$all" as the first string, for example: - ["__$all", "best", "experiment", "ever"]. + ["__$all", "best", "experiment", "ever"] To join all tags with AND, but exclude a tag use "__$not" before the excluded tag, for example: - ["__$all", "best", "experiment", "ever", "__$not", "internal", "__$not", "test"]. + ["__$all", "best", "experiment", "ever", "__$not", "internal", "__$not", "test"] The "OR" and "AND" operators apply to all tags that follow them until another operator is specified. The NOT operator applies only to the immediately following tag. For example, ["__$all", "a", "b", "c", "__$or", "d", "__$not", "e", "__$and", "__$or" "f", "g"] @@ -994,9 +994,9 @@ class Task(_Task): listed tags). To exclude a tag add "-" prefix to the tag. Example: ["best", "-debug"]. The default behaviour is to join all tags with a logical "OR" operator. To join all tags with a logical "AND" operator instead, use "__$all" as the first string, for example: - ["__$all", "best", "experiment", "ever"]. + ["__$all", "best", "experiment", "ever"] To join all tags with AND, but exclude a tag use "__$not" before the excluded tag, for example: - ["__$all", "best", "experiment", "ever", "__$not", "internal", "__$not", "test"]. + ["__$all", "best", "experiment", "ever", "__$not", "internal", "__$not", "test"] The "OR" and "AND" operators apply to all tags that follow them until another operator is specified. The NOT operator applies only to the immediately following tag. For example, ["__$all", "a", "b", "c", "__$or", "d", "__$not", "e", "__$and", "__$or" "f", "g"] @@ -1052,13 +1052,13 @@ class Task(_Task): :param str task_name: task name (str) within the selected project Return any partial match of task_name, regular expressions matching is also supported. If None is passed, returns all tasks within the project - :param list tags: Filter based on the requested list of tags (strings). - To exclude a tag add "-" prefix to the tag. Example: ["best", "-debug"]. + :param list tags: Filter based on the requested list of tags (strings) + To exclude a tag add "-" prefix to the tag. Example: ["best", "-debug"] The default behaviour is to join all tags with a logical "OR" operator. To join all tags with a logical "AND" operator instead, use "__$all" as the first string, for example: - ["__$all", "best", "experiment", "ever"]. + ["__$all", "best", "experiment", "ever"] To join all tags with AND, but exclude a tag use "__$not" before the excluded tag, for example: - ["__$all", "best", "experiment", "ever", "__$not", "internal", "__$not", "test"]. + ["__$all", "best", "experiment", "ever", "__$not", "internal", "__$not", "test"] The "OR" and "AND" operators apply to all tags that follow them until another operator is specified. The NOT operator applies only to the immediately following tag. For example, ["__$all", "a", "b", "c", "__$or", "d", "__$not", "e", "__$and", "__$or" "f", "g"]