-
Notifications
You must be signed in to change notification settings - Fork 16
/
AAL_CommonSaveName_file.py
40 lines (26 loc) · 1.01 KB
/
AAL_CommonSaveName_file.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
import datetime
import numpy
def AAL_CommonSaveName(DataFileName, ZLB_Imposed, IEKF_Count, SampleMaturities, N, DataFrequency, FINAL, rL):
#UNTITLED Summary of this function goes here
# Detailed explanation goes here
# Time stamp for file names.
TimeStamp = datetime.datetime.now().strftime("_%Y_%m_%d_%H_%M_%S")
if (ZLB_Imposed == 0):
ModelType = 'ANSM'
else:
ModelType = 'KANSM'
if (FINAL == 1):
FinalOrInterim = 'Final'
else:
FinalOrInterim = 'Interim'
if (IEKF_Count < 0):
IEKFString = "_E%.6f" % numpy.log10(-IEKF_Count)
else:
IEKFString = "%.6f" % numpy.log10(IEKF_Count)
if (rL == -10):
LowerBoundString = 'Est'
else:
LowerBoundString = "%.6f" % 10000 * rL
SaveName = DataFileName + '_rL_' + LowerBoundString + '_%.6f' % SampleMaturities[-1] + '_' + ModelType + "%i" % N + '_' + DataFrequency + '_IEKF' + IEKFString + '_' + FinalOrInterim
SaveName = SaveName + TimeStamp
return SaveName