Skip to content
Snippets Groups Projects
Commit 3b65feea authored by Eric's avatar Eric
Browse files

fix deprecated msg according to the last commit.

fix comment of get_datafiles_list.
parent 16ec7da2
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ class Client:
df.index.name = 'ID'
return df
""" Fetch Dataset Name and Slug ID available for the user as JSON. A filter can be made on metadata and dataset """
""" Return a DataFrame of user's files. A filter can be made on annotation and dataset """
def get_datafiles_list(self, key_anno=None, value_anno=None, dataset_id=None):
if key_anno is None and value_anno is None and dataset_id is None:
sys.stderr.write("WARNING: return all files isnt implemented\n")
......@@ -169,7 +169,7 @@ class Client:
""" Return DataFrame (file_name, file_id, file_slug, file_hash) for files in a given dataset """
def get_dataset_filelist(self, dataset_id):
sys.stderr.write("DEPRECATED: Please use " +
"get_list_datafiles(dataset_id=dataset_id)\n")
"get_datafiles_list(dataset_id=dataset_id)\n")
# df = pd.DataFrame(columns=['file_id', 'file_name', 'file_hash', 'file_slug'])
# if dataset_id not in self.datasets.index:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment