def submitRun(self, modelRun, prefixStr=None, extraCmdLineOpts=None, dryRun=False, maxRunTime=None):
     if dryRun is True:
         print "Called to submit modelRun %s in dryRun mode" % (modelRun.name)
         runOptsDict = {
             "prefixStr": prefixStr,
             "extraCmdLineOpts": extraCmdLineOpts,
             "dryRun": dryRun,
             "maxRunTime": maxRunTime,
         }
         return None
     else:
         print "Called to submit modelRun %s" % (modelRun.name)
         jobMetaInfo = JobMetaInfo(0)
         jobMetaInfo.modelName = modelRun.name
         return jobMetaInfo
Ejemplo n.º 2
0
 def submitRun(self, modelRun, prefixStr=None,
         extraCmdLineOpts=None, dryRun=False, maxRunTime=None):
     if dryRun is True:
         print("Called to submit modelRun %s in dryRun mode" \
             % (modelRun.name))
         runOptsDict = {
             'prefixStr':prefixStr,
             'extraCmdLineOpts':extraCmdLineOpts,
             'dryRun':dryRun,
             'maxRunTime':maxRunTime}
         return None
     else:
         print("Called to submit modelRun %s" % (modelRun.name))
         jobMetaInfo = JobMetaInfo(0)
         jobMetaInfo.modelName = modelRun.name
         return jobMetaInfo