Skip to content

Commit

Permalink
Merge pull request #105 from PatrickWaweru/fixWrongHTSMatrixJul2024-3.x
Browse files Browse the repository at this point in the history
Fixed wrongly formatted HTS matrix - swapped medium - high thresholds
  • Loading branch information
patryllus authored Jul 18, 2024
2 parents 5522360 + f0306d2 commit 6c20e72
Show file tree
Hide file tree
Showing 2 changed files with 80,164 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static ObjectNode getModelConfig(String requestBodyString) {
* @return
*/
public static String readBundledHtsCasefindingFacilityProfileFile() {
InputStream stream = MLUtils.class.getClassLoader().getResourceAsStream("hts/hts_ml_facility_cut_off_national_may_2024.json");
InputStream stream = MLUtils.class.getClassLoader().getResourceAsStream("hts/hts_ml_facility_cut_off_national_jul_2024.json");
ObjectMapper mapper = new ObjectMapper();
try {
ArrayNode result = mapper.readValue(stream, ArrayNode.class);
Expand Down Expand Up @@ -413,7 +413,7 @@ public static SimpleObject getHTSThresholds() {

// Check if the matrix has the thresholds
String facilityMflCode = getDefaultMflCode();
InputStream stream = MLUtils.class.getClassLoader().getResourceAsStream("hts/hts_ml_facility_cut_off_national_may_2024.json");
InputStream stream = MLUtils.class.getClassLoader().getResourceAsStream("hts/hts_ml_facility_cut_off_national_jul_2024.json");
ObjectMapper mapper = new ObjectMapper();
try {
JsonNode rootNode = mapper.readTree(stream);
Expand Down
Loading

0 comments on commit 6c20e72

Please sign in to comment.