1 parent ffeab22 commit 9bac524Copy full SHA for 9bac524
1 file changed
face_rhythm/util.py
@@ -1225,9 +1225,8 @@ def rep_inputs(item, n_jobs):
1225
json.dump(params_list[ii], f)
1226
1227
# Prepare the sbatch_config
1228
- ## assert that the last line of the sbatch_config_list is 'python "$@"'
1229
- last_line = sbatch_config_list[ii].split('\n')[-1]
1230
- assert last_line == 'python "$@"', f'ERROR: last line of sbatch_config_list must be exactly: python "$@"\nfound: {last_line}'
+ ## assert the search term 'python "$@"' is in the sbatch_config_list
+ assert 'python "$@"' in sbatch_config_list[ii], "FR ERROR: sbatch_config_list must contain 'python \"$@\"' at the end"
1231
## Replace the "$@" with the arguments
1232
sbatch_config_list[ii] = sbatch_config_list[ii].replace(
1233
'python "$@"',
0 commit comments