@dra2020/district-analytics 5.7.0 → 5.7.1
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 +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +3 -1
- package/dist/district-analytics.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -104547,9 +104547,11 @@ function scorePlan(s, p, bLog = false, overridesJSON) {
|
|
|
104547
104547
|
// Populate the N+1 summary "district" in district.statistics
|
|
104548
104548
|
let totalPop = s.districts.statistics[D.DistrictField.TotalPop];
|
|
104549
104549
|
let popDevPct = s.districts.statistics[D.DistrictField.PopDevPct];
|
|
104550
|
-
let
|
|
104550
|
+
let totalVAP = s.districts.statistics[D.DistrictField.TotalVAP];
|
|
104551
|
+
const summaryRow = s.districts.numberOfRows() - 1;
|
|
104551
104552
|
totalPop[summaryRow] = p.populationProfile.targetSize;
|
|
104552
104553
|
popDevPct[summaryRow] = popDev;
|
|
104554
|
+
totalVAP[summaryRow] = Math.round(totalVAP[summaryRow] / p.nDistricts);
|
|
104553
104555
|
// Add minority notes
|
|
104554
104556
|
scorecard.minority.details['majorityMinority'] = M.getMajorityMinority(s);
|
|
104555
104557
|
scorecard.minority.details['vraPreclearance'] = M.getVRASection5(s);
|