mirror of
https://github.com/edoverg/modeconverter.git
synced 2026-10-14 23:06:39 +00:00
solved conflict on folder creation among multiple processes
This commit is contained in:
+3
-2
@@ -15,8 +15,9 @@ from PIL import Image
|
|||||||
import pickle
|
import pickle
|
||||||
mp.verbosity(3)
|
mp.verbosity(3)
|
||||||
|
|
||||||
if not os.path.exists("results"):
|
if mp.am_master():
|
||||||
os.makedirs("results")
|
if not os.path.exists("results"):
|
||||||
|
os.makedirs("results")
|
||||||
|
|
||||||
###### PHYSICS SETUP ######
|
###### PHYSICS SETUP ######
|
||||||
RESOLUTION = 20 #pixels per meep unit length (1um)
|
RESOLUTION = 20 #pixels per meep unit length (1um)
|
||||||
|
|||||||
Reference in New Issue
Block a user