update
This commit is contained in:
parent
797149d7db
commit
df674318ca
@ -1,5 +1,3 @@
|
|||||||
import numpy as np
|
|
||||||
|
|
||||||
def run(parameter_array):
|
def run(parameter_array):
|
||||||
for parameter in parameter_array:
|
for parameter in parameter_array:
|
||||||
print('hello world'+' '+str(parameter))
|
print('hello world'+' '+str(parameter))
|
@ -2,6 +2,4 @@
|
|||||||
#PBS -N task
|
#PBS -N task
|
||||||
#PBS -l nodes=1:ppn=1
|
#PBS -l nodes=1:ppn=1
|
||||||
#PBS -q bigmem
|
#PBS -q bigmem
|
||||||
cd $PBS_O_WORKDIR
|
|
||||||
export OMP_NUM_THREADS=1
|
|
||||||
python a.py
|
python a.py
|
@ -0,0 +1,7 @@
|
|||||||
|
def run(parameter_array):
|
||||||
|
for parameter in parameter_array:
|
||||||
|
print('hello world'+' '+str(parameter))
|
||||||
|
|
||||||
|
parameter=0
|
||||||
|
parameter_array = [parameter]
|
||||||
|
run(parameter_array)
|
@ -0,0 +1,8 @@
|
|||||||
|
import numpy as np
|
||||||
|
import guan
|
||||||
|
|
||||||
|
parameter_array = np.arange(0, 11, 2)
|
||||||
|
|
||||||
|
guan.make_sh_file(sh_filename='a', command_line='python a.py', cpu_num=1, task_name='task', cd_dir=0)
|
||||||
|
|
||||||
|
guan.copy_py_sh_file_and_qsub_task(parameter_array=parameter_array, py_filename='a', old_str_in_py='parameter=0', new_str_in_py='parameter=', sh_filename='a', qsub_task_name='task')
|
Loading…
x
Reference in New Issue
Block a user