-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileInfo.py
114 lines (77 loc) · 4.24 KB
/
FileInfo.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import os, sys
staticDirName = 'static'
absStaticDirPath = os.path.realpath(staticDirName)
# Additional Info
additionalInfoURL = staticDirName + '/AdditionalInfo.html'
# fit statistics
fitStatisticsFileName_2D = 'fitStatistics_2D.txt'
fitStatisticsFilePath_2D = os.path.join(absStaticDirPath, fitStatisticsFileName_2D)
fitStatisticsURL_2D = staticDirName + '/' + fitStatisticsFileName_2D
fitStatisticsFileName_3D = 'fitStatistics_3D.txt'
fitStatisticsFilePath_3D = os.path.join(absStaticDirPath, fitStatisticsFileName_3D)
fitStatisticsURL_3D = staticDirName + '/' + fitStatisticsFileName_3D
# source code
sourceCodeFileName_2D = 'sourceCode_2D.html'
sourceCodeFilePath_2D = os.path.join(absStaticDirPath, sourceCodeFileName_2D)
sourceCodeURL_2D = staticDirName + '/' + sourceCodeFileName_2D
sourceCodeFileName_3D = 'sourceCode_3D.html'
sourceCodeFilePath_3D = os.path.join(absStaticDirPath, sourceCodeFileName_3D)
sourceCodeURL_3D = staticDirName + '/' + sourceCodeFileName_3D
# For all 2d equation wrapper for image
def modelPlot_2D(cnt):
modelPlotFileName_2D = 'model_and_scatterplot_2D'+str(cnt)+'.png'
return os.path.join(absStaticDirPath, modelPlotFileName_2D)
def modelPlURL_2D(cnt):
modelPlotFileName_2D = 'model_and_scatterplot_2D'+str(cnt)+'.png'
return staticDirName + '/' + modelPlotFileName_2D
# For all 3d equation wrapper for image
def modelPlot_3D(cnt):
modelPlotFileName_3D = 'model_and_scatterplot_3D'+str(cnt)+'.png'
return os.path.join(absStaticDirPath, modelPlotFileName_3D)
def modelPlURL_3D(cnt):
modelPlotFileName_3D = 'model_and_scatterplot_3D'+str(cnt)+'.png'
return staticDirName + '/' + modelPlotFileName_3D
def contourPlot_3D(cnt):
contourPlotFileName_3D = 'contour_and_scatterplot_3D'+str(cnt)+'.png'
return os.path.join(absStaticDirPath, contourPlotFileName_3D)
def contourPlURL_3D(cnt):
contourPlotFileName_3D = 'contour_and_scatterplot_3D'+str(cnt)+'.png'
return staticDirName + '/' + contourPlotFileName_3D
# model and scatterplot, contour
modelPlotFileName_2D = 'model_and_scatterplot_2D.png'
modelPlotFilePath_2D = os.path.join(absStaticDirPath, modelPlotFileName_2D)
modelPlotURL_2D = staticDirName + '/' + modelPlotFileName_2D
modelPlotFileName_3D = 'model_and_scatterplot_3D.png'
modelPlotFilePath_3D = os.path.join(absStaticDirPath, modelPlotFileName_3D)
modelPlotURL_3D = staticDirName + '/' + modelPlotFileName_3D
contourPlotFileName_3D = 'contour_and_scatterplot_3D.png'
contourPlotFilePath_3D = os.path.join(absStaticDirPath, contourPlotFileName_3D)
contourPlotURL_3D = staticDirName + '/' + contourPlotFileName_3D
# absolute error plots
absErrorPlotFileName_2D = 'absoluteErrorPlot_2D.png'
absErrorPlotFilePath_2D = os.path.join(absStaticDirPath, absErrorPlotFileName_2D)
absErrorPlotURL_2D = staticDirName + '/' + absErrorPlotFileName_2D
absErrorPlotFileName_3D = 'absoluteErrorPlot_3D.png'
absErrorPlotFilePath_3D = os.path.join(absStaticDirPath, absErrorPlotFileName_3D)
absErrorPlotURL_3D = staticDirName + '/' + absErrorPlotFileName_3D
# absolute error histograms
absErrorHistFileName_2D = 'absoluteErrorHistogram_2D.png'
absErrorHistFilePath_2D = os.path.join(absStaticDirPath, absErrorHistFileName_2D)
absErrorHistURL_2D = staticDirName + '/' + absErrorHistFileName_2D
absErrorHistFileName_3D = 'absoluteErrorHistogram_3D.png'
absErrorHistFilePath_3D = os.path.join(absStaticDirPath, absErrorHistFileName_3D)
absErrorHistURL_3D = staticDirName + '/' + absErrorHistFileName_3D
# percent error plots
perErrorPlotFileName_2D = 'percentErrorPlot_2D.png'
perErrorPlotFilePath_2D = os.path.join(absStaticDirPath, perErrorPlotFileName_2D)
perErrorPlotURL_2D = staticDirName + '/' + perErrorPlotFileName_2D
perErrorPlotFileName_3D = 'percentErrorPlot_3D.png'
perErrorPlotFilePath_3D = os.path.join(absStaticDirPath, perErrorPlotFileName_3D)
perErrorPlotURL_3D = staticDirName + '/' + perErrorPlotFileName_3D
# percent error histograms
perErrorHistFileName_2D = 'percentErrorHistogram_2D.png'
perErrorHistFilePath_2D = os.path.join(absStaticDirPath, perErrorHistFileName_2D)
perErrorHistURL_2D = staticDirName + '/' + perErrorHistFileName_2D
perErrorHistFileName_3D = 'percentErrorHistogram_3D.png'
perErrorHistFilePath_3D = os.path.join(absStaticDirPath, perErrorHistFileName_3D)
perErrorHistURL_3D = staticDirName + '/' + perErrorHistFileName_3D