@dra2020/district-analytics 8.2.7 → 8.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -3
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +10 -3
- package/dist/district-analytics.js.map +1 -1
- package/package.json +1 -1
|
@@ -2020,9 +2020,16 @@ function scorePlan(s, p, bLog = false, overridesJSON) {
|
|
|
2020
2020
|
// Add minority notes
|
|
2021
2021
|
scorecard.minority.details['majorityMinority'] = M.getMajorityMinority(s);
|
|
2022
2022
|
scorecard.minority.details['vraPreclearance'] = M.getVRASection5(s);
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2023
|
+
try {
|
|
2024
|
+
// Add KIWYSI compactness score
|
|
2025
|
+
const kiwysiScore = C.scoreKIWYSICompactness(s, bLog);
|
|
2026
|
+
scorecard.compactness.details['kiwysi'] = kiwysiScore;
|
|
2027
|
+
}
|
|
2028
|
+
catch (e) {
|
|
2029
|
+
console.log("Exception caught scoring KIWYSI compactness.");
|
|
2030
|
+
console.log(e.message);
|
|
2031
|
+
// throw e;
|
|
2032
|
+
}
|
|
2026
2033
|
return scorecard;
|
|
2027
2034
|
}
|
|
2028
2035
|
exports.scorePlan = scorePlan;
|