forked from martiniani-lab/spectre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.py
executable file
·43 lines (31 loc) · 1.25 KB
/
startup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import os
if os.getcwd() != os.path.dirname(os.path.realpath(__file__)):
os.chdir(os.path.dirname(os.path.realpath(__file__)))
print("Changed working directory to script directory")
if not os.path.exists('figures'):
os.mkdir('figures')
print("Created figures directory")
if not os.path.exists('figures/time_complexity'):
os.mkdir('figures/time_complexity')
print("Created figures/time_complexity directory")
if not os.path.exists('figures/FHN'):
os.mkdir('figures/FHN')
print("Created figures/FHN directory")
if not os.path.exists('figures/HR'):
os.mkdir('figures/HR')
print("Created figures/HR directory")
if not os.path.exists('figures/RPS'):
os.mkdir('figures/RPS')
print("Created figures/RPS directory")
if not os.path.exists('figures/RPS_ND'):
os.mkdir('figures/RPS_ND')
print("Created figures/RPS_ND directory")
if not os.path.exists('figures/SSN'):
os.mkdir('figures/SSN')
print("Created figures/SSN directory")
if not os.path.exists('figures/WC4D'):
os.mkdir('figures/WC4D')
print("Created figures/WC4D directory")
if not os.path.exists('figures/recursive_g'):
os.mkdir('figures/recursive_g')
print("Created figures/recursive_g directory")