cunqa.mappers.QJobMapper
- class cunqa.mappers.QJobMapper(qjobs)
Bases:
object
Class to map the method QJob.upgrade_parameters to a list of QJobs.
Methods
- __call__(func, population)
Callable method to map the function to the given QJobs.
- Args:
func (func): function to be mapped to the QJobs. It must take as argument the an object <class ‘qjob.Result’>.
population (list[list]): population of vectors to be mapped to the QJobs.
- Return:
List of results of the function applied to the QJobs for the given population.