1

I'm working with HPC and am trying to run a python script that reads and modify every tif files in a folder and its subfolders. Right now I'm running a for loop:

files = glob.glob("./Examples/**/*.tif", recursive = True)

for file in files:

But it doesn't modify every file in the subfolder, only the final one. I run the exact same script locally and it worked just fine. So I'm thinking it's something to do with SLURM sitting on top of the code and maybe controlling how and when outputs get written. So could there be a way to write a python/slurm script that looks at the files in the directory and calls a slurm script, passing it a file name? Or any other solutions are also welcomed.

Thanks.

jxaiye
  • 13
  • 4
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 13 '22 at 09:40
  • What modifications are you doing to each image? Share more details so we can reproduce your problem. Are you using the environment variables? – Prakhar Sharma Sep 13 '22 at 10:58

0 Answers0