Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dawn-gdd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
dawn
go-backend
dawn-gdd
Commits
9a2ab33d
Commit
9a2ab33d
authored
3 years ago
by
tgsiegel
Browse files
Options
Downloads
Patches
Plain Diff
complete
parent
01afeedd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!20
Forecast service fix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
persistence/mongodb.go
+4
-0
4 additions, 0 deletions
persistence/mongodb.go
services/forecast_service.go
+2
-0
2 additions, 0 deletions
services/forecast_service.go
with
6 additions
and
0 deletions
persistence/mongodb.go
+
4
−
0
View file @
9a2ab33d
...
...
@@ -125,6 +125,10 @@ func GetLastNormalsYearly(location entities.Location) []entities.Gdd {
panic
(
config
.
INTERNAL_SERVER_STANDARD_ERROR
.
AddLogDetails
(
err
.
Error
()))
}
if
len
(
n
)
==
0
{
panic
(
config
.
NO_DATA_FOUND
.
PutDetail
(
"reason"
,
"normal_gdd"
))
}
return
n
}
...
...
This diff is collapsed.
Click to expand it.
services/forecast_service.go
+
2
−
0
View file @
9a2ab33d
...
...
@@ -22,6 +22,7 @@ func GetStageYearData(ctx common.DawnCtx, request models.GddRequest, comparison
var
gs
[]
entities
.
Gdd
norms
:=
persistence
.
GetLastNormalsYearly
(
request
.
BuildLocation
())
if
comparison
==
-
1
{
gs
=
norms
}
else
{
...
...
@@ -29,6 +30,7 @@ func GetStageYearData(ctx common.DawnCtx, request models.GddRequest, comparison
}
var
normalMeanNonAcc
[]
float64
comparisonRows
:=
[][]
float64
{}
for
i
:=
0
;
i
<
len
(
gs
[
0
]
.
MinTemps
);
i
++
{
rowComp
:=
[]
float64
{}
rowNormal
:=
[]
float64
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment