@@ -11,7 +11,6 @@ import (
1111 "gdsc/baro/global/fcm"
1212 "gdsc/baro/global/utils"
1313 "io"
14- "math/rand"
1514 "os"
1615 "time"
1716
@@ -175,11 +174,7 @@ func ParseAnalysis(response *types.ResponseAnalysis) ([]int, []float64, string,
175174 angles = append (angles , response .LandmarksInfo [i ].Angle )
176175 }
177176
178- if len (response .LandmarksInfo ) == 0 {
179- return _CorrectionScore ()
180- } else {
181- return result , scores , fmt .Sprintf ("%.3f" , nomalRatio ), fmt .Sprintf ("%v" , statusFrequencies ), fmt .Sprintf ("%.3f" , distances ), fmt .Sprintf ("%.3f" , angles )
182- }
177+ return result , scores , fmt .Sprintf ("%.3f" , nomalRatio ), fmt .Sprintf ("%v" , statusFrequencies ), fmt .Sprintf ("%.3f" , distances ), fmt .Sprintf ("%.3f" , angles )
183178}
184179
185180func CalculateScores (result []int , scores []float64 ) string {
@@ -233,16 +228,6 @@ func CalculateScores(result []int, scores []float64) string {
233228 return fmt .Sprintf ("%.2f" , totalScore )
234229}
235230
236- func _CorrectionScore () ([]int , []float64 , string , string , string , string ) {
237- res := []int {1 }
238- scores := []float64 {70.3 + rand .Float64 ()* (98.5 - 70.3 )}
239- nomalRatio := 83.3 + rand .Float64 ()* (94.4 - 83.3 )
240- statusFrequencies := []int {7 , 4 , 3 , 3 }
241- distances := []float64 {2.0 + rand .Float64 ()* (3.2 - 2.0 )}
242- angles := []float64 {143.8 + rand .Float64 ()* (170.25 - 143.8 )}
243- return res , scores , fmt .Sprintf ("%.3f" , nomalRatio ), fmt .Sprintf ("%v" , statusFrequencies ), fmt .Sprintf ("%.3f" , distances ), fmt .Sprintf ("%.3f" , angles )
244- }
245-
246231func GenerateMessage (date string ) (string , string , error ) {
247232 timeFormats := []string {
248233 "2006-01-02 15:04:05.000 -0700 MST" ,
0 commit comments