Hi @<1524560082761682944:profile|MammothParrot39> , how do you usually fetch metadata from a dataset?
@<1523701070390366208:profile|CostlyOstrich36> I did it,, but I think its not optimal))
This is how I got information about FieldNet project:
from clearml import Task, Dataset
all_taks = Task.get_tasks()
FieldNet_tasks = {}
for task in all_taks:
name = task.name
task_id = task.task_id
if 'FieldNet' in name:
if name in FieldNet_tasks:
# get last dataset version
task_old_version = Task.get_task(task_id=FieldNet_tasks[name]).get_parameters_as_dict()['properties']['version']
task_new_version = Task.get_task(task_id=task_id).get_parameters_as_dict()['properties']['version']
if int(task_new_version.split('.')[-1]) > int(task_old_version.split('.')[-1]):
FieldNet_tasks[name] = task_id
else:
FieldNet_tasks[name] = task_id