Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/345.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在drmaa python中将作业数组索引作为参数传递_Python_Lsf_Drmaa - Fatal编程技术网

在drmaa python中将作业数组索引作为参数传递

在drmaa python中将作业数组索引作为参数传递,python,lsf,drmaa,Python,Lsf,Drmaa,我正在使用lsf drmaa实现,并通过drmaa python进行接口。我通常将环境变量$LSB_JOBINDEX作为参数传入run.sh脚本。通过drmaa-python,我创建了JobTemplate-jt,并希望将其作为参数传递。我已尝试使用参数索引,但此命令对我无效:jt.args=[str(drmaa.JobTemplate.PARAMETRIC\u INDEX)] 我收到以下错误: W #29c0 [ 1227.22] * '$drmaa_incr_ph$' can not b

我正在使用lsf drmaa实现,并通过drmaa python进行接口。我通常将环境变量$LSB_JOBINDEX作为参数传入run.sh脚本。通过drmaa-python,我创建了
JobTemplate-jt
,并希望将其作为参数传递。我已尝试使用参数索引,但此命令对我无效:
jt.args=[str(drmaa.JobTemplate.PARAMETRIC\u INDEX)]

我收到以下错误:

W #29c0 [  1227.22]  * '$drmaa_incr_ph$' can not be expanded in '$drmaa_incr_ph$'; removing from string

我哪里出了问题,和/或如何使用其他方法传递索引?谢谢--

您应该能够(在运行脚本中)通过环境变量
$SGE\u TASK\u ID
引用
参数化索引的值。qmaster负责在脚本提交相应作业时,使用脚本中的每个数组索引值扩展/填充
$SGE\u TASK\u ID