mcstasscript.interface.functions.name_search
mcstasscript.interface.functions.name_search¶
- mcstasscript.interface.functions.name_search(name, data_list)¶
” name_search returns McStasData instance with specific name if it is in the given data_list. If no match is found, a search for the data filename is performed. If several matches are found, a list of McStasData objects are returned.
The index of certain datasets in the data_list can change if additional monitors are added so it is more convenient to access the data files using their names.
- Parameters
name (string) – Name of the dataset to be retrieved (component_name)
data_list (List of McStasData instances) – List of datasets to search