def make_movers(self, scheme):
     ensemble_list = self.get_ensembles(scheme, self.ensembles)
     ensembles = reduce(list.__add__, map(lambda x: list(x), ensemble_list))
     shooters = [
         paths.TwoWayShootingMover(
             ensemble=ens,
             selector=self.selector,
             modifier=self.modifier,
             engine=self.engine).named("TwoWayShooting " + ens.name)
         for ens in ensembles
     ]
     return shooters
Ejemplo n.º 2
0
 def make_movers(self, scheme):
     parameters = self.get_parameters(
         scheme=scheme,
         list_parameters=[self.selector, self.modifier],
         nonlist_parameters=[self.engine])
     shooters = [
         paths.TwoWayShootingMover(ensemble=ens,
                                   selector=sel,
                                   modifier=mod,
                                   engine=eng).named("TwoWayShooting " +
                                                     ens.name)
         for (ens, sel, mod, eng) in parameters
     ]
     return shooters