The script needs to be escaped for creating the actual sbatch script. `str(slurm_object)` should show the expected script as is. For example, the lines: ```python with open("script.sh", mode="w") as f: print(slurm_object,file=f) ``` should generally work.
The script needs to be escaped for creating the actual sbatch script.
str(slurm_object)should show the expected script as is.For example, the lines:
should generally work.