def get_setpoints(self, param_name: str) -> Dict[str, List[List[Any]]]: """ Get the setpoints for the specified parameter Args: param_name: The name of the parameter for which to get the setpoints """ if param_name not in self.parameters: raise ValueError('Unknown parameter, not in this DataSet') if self.paramspecs[param_name].depends_on == '': raise ValueError(f'Parameter {param_name} has no setpoints.') setpoints = get_setpoints(self.conn, self.table_name, param_name) return setpoints
def get_setpoints(self, param_name: str) -> Dict[str, List[List[Any]]]: """ Get the setpoints for the specified parameter Args: param_name: The name of the parameter for which to get the setpoints """ paramspec: ParamSpecBase = self._interdeps._id_to_paramspec[param_name] if param_name not in self.parameters: raise ValueError('Unknown parameter, not in this DataSet') if paramspec not in self._interdeps.dependencies.keys(): raise ValueError(f'Parameter {param_name} has no setpoints.') setpoints = get_setpoints(self.conn, self.table_name, param_name) return setpoints