Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit d5fca08

Browse files
mlenkeithilmarf
andauthored
Update parameters for risk calculation (#1260)
* chore: align risk calc params to latest model * set version * add missing log parameter Co-authored-by: Hilmar Falkenberg <hilmar.falkenberg@sap.com>
1 parent 44d1b17 commit d5fca08

File tree

4 files changed

+29
-23
lines changed

4 files changed

+29
-23
lines changed

.mvn/maven.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-Drevision=1.15.0
1+
-Drevision=1.15.1
22
-Dlicense.projectName=Corona-Warn-App
33
-Dlicense.inceptionYear=2020
44
-Dlicense.licenseName=apache_v2

services/distribution/src/main/resources/main-config/v2/risk-calculation-parameters-1.15.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,45 +15,45 @@ minutes-at-attenuation-weights:
1515
-
1616
attenuation-range:
1717
min: 0
18-
max: 55
19-
max-exclusive: true
20-
weight: 1.0
21-
-
22-
attenuation-range:
23-
min: 55
2418
max: 63
2519
max-exclusive: true
26-
weight: 0.5
20+
weight: 0.8
2721
-
2822
attenuation-range:
2923
min: 63
3024
max: 73
3125
max-exclusive: true
32-
weight: 0.3
26+
weight: 1.0
27+
-
28+
attenuation-range:
29+
min: 73
30+
max: 79
31+
max-exclusive: true
32+
weight: 0.1
3333

3434
normalized-time-per-e-w-to-risk-level-mapping:
3535
-
3636
normalized-time-range:
3737
min: 0
38-
max: 15
38+
max: 13
3939
max-exclusive: true
4040
risk-level: 1
4141
-
4242
normalized-time-range:
43-
min: 15
43+
min: 13
4444
max: 9999
4545
risk-level: 2
4646

4747
normalized-time-per-day-to-risk-level-mapping:
4848
-
4949
normalized-time-range:
5050
min: 5
51-
max: 15
51+
max: 13
5252
max-exclusive: true
5353
risk-level: 1
5454
-
5555
normalized-time-range:
56-
min: 15
56+
min: 13
5757
max: 99999
5858
risk-level: 2
5959

services/distribution/src/main/resources/main-config/v2/risk-calculation-parameters.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ minutes-at-attenuation-filters:
1111
-
1212
attenuation-range:
1313
min: 0
14-
max: 73
14+
max: 79
1515
max-exclusive: true
1616
drop-if-minutes-in-range:
1717
min: 0
@@ -28,39 +28,45 @@ minutes-at-attenuation-weights:
2828
-
2929
attenuation-range:
3030
min: 0
31-
max: 55
31+
max: 63
32+
max-exclusive: true
33+
weight: 0.8
34+
-
35+
attenuation-range:
36+
min: 63
37+
max: 73
3238
max-exclusive: true
3339
weight: 1.0
3440
-
3541
attenuation-range:
36-
min: 55
37-
max: 63
42+
min: 73
43+
max: 79
3844
max-exclusive: true
39-
weight: 0.5
45+
weight: 0.1
4046

4147
normalized-time-per-e-w-to-risk-level-mapping:
4248
-
4349
normalized-time-range:
4450
min: 0
45-
max: 15
51+
max: 13
4652
max-exclusive: true
4753
risk-level: 1
4854
-
4955
normalized-time-range:
50-
min: 15
56+
min: 13
5157
max: 9999
5258
risk-level: 2
5359

5460
normalized-time-per-day-to-risk-level-mapping:
5561
-
5662
normalized-time-range:
5763
min: 0
58-
max: 15
64+
max: 13
5965
max-exclusive: true
6066
risk-level: 1
6167
-
6268
normalized-time-range:
63-
min: 15
69+
min: 13
6470
max: 99999
6571
risk-level: 2
6672

services/download/src/main/java/app/coronawarn/server/services/download/FederationBatchProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private Optional<String> processBatchAndReturnNextBatchId(
210210
}
211211
int insertedKeys = diagnosisKeyService.saveDiagnosisKeys(validDiagnosisKeys);
212212
logger.info("Successfully inserted {} {} keys for date {} and batchTag {}", batchInfo.getSourceSystem(),
213-
insertedKeys, date);
213+
insertedKeys, date, batchTag);
214214
}, () -> logger.info("{} batch for date {} and batchTag {} did not contain any keys",
215215
batchInfo.getSourceSystem(), date, batchTag));
216216
batchInfoService.updateStatus(batchInfo, batchContainsInvalidKeys.get() ? PROCESSED_WITH_ERROR : PROCESSED);

0 commit comments

Comments
 (0)