Ejemplo n.º 1
0
    def wflow(self):
        from fireworks import Firework, Workflow

        cluster = self.allocate(1)[0]
        timestamp = '_' + d.datetime.now().strftime('%Y_%m_%d_%H_%M_%S')

        fw1 = Firework(
            [self.standardScript()],
            name=self.jobkind,
            spec={
                'params': self.params,
                '_fworker': cluster.fworker,
                '_queueadapter': cluster.qfunc(self.guessTime()),
                '_launch_dir': cluster.launchdir + self.jobkind + timestamp
            })
        return Workflow([fw1], name=self.jobkind)
Ejemplo n.º 2
0
 def wflow(self):
     from fireworks import Firework, Workflow
     from standardScripts import GetXCcontribs
     cluster = self.allocate(1)[0]
     timestamp = '_' + d.datetime.now().strftime('%Y_%m_%d_%H_%M_%S')
     name = 'GetXCcontribs'
     fw1 = Firework(
         [GetXCcontribs()],
         name=name,
         spec={
             'params': self.params,
             '_fworker': cluster.fworker,
             '_add_launchpad_and_fw_id': True,
             "_queueadapter": cluster.qfunc(self.guessTime()),
             "_launch_dir": cluster.launchdir + name + timestamp
         })
     return Workflow([fw1], name=name)