\(\renewcommand\AA{\unicode{x212B}}\)

CatalogMyDataSearch v1

../_images/CatalogMyDataSearch-v1_dlg.png

CatalogMyDataSearch dialog.

Summary

Obtains the user’s investigations for all active catalogs and stores them into a workspace.

Properties

Name Direction Type Default Description
Session Input string   The session information of the catalog to use.
OutputWorkspace Output TableWorkspace Mandatory The name of the workspace to store the search results.

Description

This algorithm obtains the investigations from all active catalogs that exist in my data (those of which you are an investigator). If a session is passed to this algorithm then only the investigations for that catalog will be returned.

Usage

Example - obtaining ‘My data’ from ICAT.

# Assuming you have previously logged into the catalog.
my_data = CatalogMyDataSearch()

# Verify that we have any investigations in 'My Data'
print("The number of investigations in 'My data' is: {}".format(len(my_data)))

# Output the title of each investigation in 'My data'
for row in my_data:
    print("The title of the investigation is: {}".format(row['Title']))

Output:

The number of investigations in 'My data' is: 1

The title of the investigation is: Mantid Test Investigation

Categories: AlgorithmIndex | DataHandling\Catalog

Source

C++ header: CatalogMyDataSearch.h (last modified: 2020-03-20)

C++ source: CatalogMyDataSearch.cpp (last modified: 2020-03-20)