-
Campbell, Stuart authoredCampbell, Stuart authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CatalogGetDataSets-v1.rst 845 B
Description
This algorithm retrieves the information of the datasets associated to an investigation, and saves the results to a workspace.
Usage
Example - obtain the datasets for a given catalog investigation.
# Assumes you have logged in and stored the session information that is
# returned from CatalogLogin() inside the session variable.
datasets = CatalogGetDataSets(InvestigationId = '1193002', Session = session.getPropertyValue("Session"))
# Verify that we have any datafiles in the returned workspace.
print "The number of datasets for this investigation is: " + str(len(datasets))
Output:
The number of datafiles in this investigation is: 2