updateupdate

This commit is contained in:
guanjihuan 2024-10-22 18:39:36 +08:00
parent 9c083b66b4
commit 1f86f9a39f
8 changed files with 13 additions and 10 deletions

View File

@ -0,0 +1,2 @@
parameter=0
print(f'hello world {parameter}')

View File

@ -0,0 +1,7 @@
import guan
parameter_array = [1, 2, 3, 4]
guan.make_sh_file_for_bsub(sh_filename='a', command_line='python a.py', cpu_num=1, task_name='task', queue_name='score', cd_dir=0)
guan.copy_py_sh_file_and_bsub_task(parameter_array, py_filename='a', old_str_in_py='parameter=0', new_str_in_py='parameter=', sh_filename='a', bsub_task_name='task')

View File

@ -0,0 +1,2 @@
parameter=0
print(f'hello world {parameter}')

View File

@ -1,8 +1,7 @@
import numpy as np
import guan
parameter_array = np.arange(0, 11, 2)
parameter_array = [1, 2, 3, 4]
guan.make_sh_file(sh_filename='a', command_line='python a.py', cpu_num=1, task_name='task', cd_dir=0)
guan.make_sh_file_for_qsub(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')

View File

@ -1,7 +0,0 @@
def run(parameter_array):
for parameter in parameter_array:
print('hello world'+' '+str(parameter))
parameter=0
parameter_array = [parameter]
run(parameter_array)