-
Notifications
You must be signed in to change notification settings - Fork 2
/
OPTIMIZE-lattice.py
executable file
·33 lines (30 loc) · 1.1 KB
/
OPTIMIZE-lattice.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
#!/usr/bin/env python
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#%%% -------------------------------------------- OPTIMIZE-lattice.py -------------------------------------------- %%%#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#
# AUTHOR:
# Rostam Golesorkhtabar
#
# DATE:
# Wed Aug 01 00:00:00 2012
#
# SYNTAX:
# python OPTIMIZE-lattice.py
# OPTIMIZE-lattice.py
#
# EXPLANATION:
#
#______________________________________________________________________________________________________________________
import os
import sys
import glob
#%%%--- Reading the optimization INFO file ---%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
INFOlist = glob.glob('INFO_*')
if (len(INFOlist) == 0):
os.system('OPTIMIZE-setup.py')
elif(len(INFOlist) == 1):
os.system('OPTIMIZE-analyze.py')
else:
sys.exit('\n ... Oops ERROR: There are more than one INFO file in this directory !?!?!?\n')