def get_projects_attached_datasets_uid(self, project_id):
project = self.client.get_project(project_id)
datasets = project.datasets()
dataset_uid_list = []
for dataset in datasets:
dataset_uid_list.append(dataset.uid)
return dataset_uid_list
The line datasets = project.datasets() returns an object <labelbox.pagination.PaginatedCollection object at 0x7f0ea0396b20>. However, after looping through datasets it’s always empty. And yes, I’m sure that the dataset exists and is attached to this project. If I use the get_datasets() method I get the dataset.
datasets = self.client.get_datasets(where=labelbox.Dataset.name == dataset_name)
Is there a way to access the datasets attached to this project from the object?