Skip to content

Commit 2bea84a

Browse files
committed
flow->task rename
1 parent f39291c commit 2bea84a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

openml/tasks/task.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,26 +97,26 @@ def get_split_dimensions(self):
9797
return self.split.repeats, self.split.folds, self.split.samples
9898

9999
def push_tag(self, tag):
100-
"""Annotates this flow with a tag on the server.
100+
"""Annotates this task with a tag on the server.
101101
102102
Parameters
103103
----------
104104
tag : str
105-
Tag to attach to the flow.
105+
Tag to attach to the task.
106106
"""
107-
data = {'flow_id': self.flow_id, 'tag': tag}
108-
_perform_api_call("/flow/tag", data=data)
107+
data = {'task_id': self.task_id, 'tag': tag}
108+
_perform_api_call("/task/tag", data=data)
109109

110110
def remove_tag(self, tag):
111-
"""Removes a tag from this flow on the server.
111+
"""Removes a tag from this task on the server.
112112
113113
Parameters
114114
----------
115115
tag : str
116-
Tag to attach to the flow.
116+
Tag to attach to the task.
117117
"""
118-
data = {'flow_id': self.flow_id, 'tag': tag}
119-
_perform_api_call("/flow/untag", data=data)
118+
data = {'task_id': self.task_id, 'tag': tag}
119+
_perform_api_call("/task/untag", data=data)
120120

121121

122122
def _create_task_cache_dir(task_id):

0 commit comments

Comments
 (0)