solved conflict on folder creation among multiple processes

This commit is contained in:
2026-05-29 14:42:29 +02:00
parent 5b18e7bce7
commit c9df747f4f
+3 -2
View File
@@ -15,8 +15,9 @@ from PIL import Image
import pickle
mp.verbosity(3)
if not os.path.exists("results"):
os.makedirs("results")
if mp.am_master():
if not os.path.exists("results"):
os.makedirs("results")
###### PHYSICS SETUP ######
RESOLUTION = 20 #pixels per meep unit length (1um)