diff --git a/flow-state/src/checks/variety/report.js b/flow-state/src/checks/variety/report.js index 3de01af..a1396af 100644 --- a/flow-state/src/checks/variety/report.js +++ b/flow-state/src/checks/variety/report.js @@ -386,8 +386,13 @@ export function measureSpecDiversity(track, { seeds = 32, seed0 = 0x5eed } = {}) looks.push(generateLook(track, { seed: (seed0 + i * 2654435761) >>> 0 })); } + // Accents excluded on both sides of the ratio. They were counted in the + // numerator and not the denominator, which reported 102% coverage once the + // casting pool started reaching them. const sceneSets = looks.map((l) => [...new Set( - l.sections.flatMap((s) => s.variants.flatMap((v) => v.map((layer) => layer.module.name))), + l.sections.flatMap((s) => s.variants.flatMap( + (v) => v.filter((layer) => layer.module.role !== 'accent') + .map((layer) => layer.module.name))), )].sort()); const usable = scenes.filter((m) => m.role !== 'accent');