def _get_plugin_data(self, data_list): """ Encapsulate a PluginData object in each dataset associated with the plugin. :params list(Data) data_list: A list of Data objects used in a plugin. :returns: A list of PluginData objects. :rtype: list(PluginData) """ pData_list = [] for data in data_list: pData_list.append(PluginData(data, self)) pData_list[-1].extra_dims = self.extra_dims pData_list[-1].multi_params_dict = self.multi_params_dict return pData_list
def get_data_object(exp): data = exp.index['in_data'][exp.index['in_data'].keys()[0]] data._set_plugin_data(PluginData(data)) pData = data._get_plugin_data() return data, pData