This commit is contained in:
guanjihuan 2025-03-24 05:04:11 +08:00
parent 0d5c72dc1f
commit 944bbc6a77
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = guan
version = 0.1.171
version = 0.1.172
author = guanjihuan
author_email = guanjihuan@163.com
description = An open source python package

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: guan
Version: 0.1.171
Version: 0.1.172
Summary: An open source python package
Home-page: https://py.guanjihuan.com
Author: guanjihuan

View File

@ -266,7 +266,7 @@ def make_sh_file_for_sbatch(sh_filename='a', command_line='python a.py', cpu_num
'#!/bin/sh\n' \
+f'#SBATCH --job-name={task_name}\n'
if sbatch_partition==1:
sh_content += f'#SBATCH --partition={partition_name}'
sh_content += f'#SBATCH --partition={partition_name}\n'
sh_content += f'#SBATCH --cpus-per-task={cpu_num}\n'
if cd_dir==1:
sh_content += 'cd $PBS_O_WORKDIR\n'