diff --git a/CHANGELOG.md b/CHANGELOG.md index 79ca31513d7f06d386b38d0f833b97a45d7b1187..d80869d1791cf92721afb8d1bc57cbd6f53fe7d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Note that since we don't clearly distinguish between a public and private interf ## [Unreleased] - Fix edge-case in `Structure.eachUnitPair` with single-element units +- Fix 'auto' structure-quality for coarse models ## [v3.25.0] - 2022-11-16 diff --git a/src/mol-repr/util.ts b/src/mol-repr/util.ts index 632962922baf51d8df1346b532d04b59f1e5f888..b37e4954e457b02b0570d6df756f8fffa1912bcf 100644 --- a/src/mol-repr/util.ts +++ b/src/mol-repr/util.ts @@ -75,7 +75,7 @@ export type QualityThresholds = typeof DefaultQualityThresholds export function getStructureQuality(structure: Structure, tresholds: Partial<QualityThresholds> = {}): VisualQuality { const t = { ...DefaultQualityThresholds, ...tresholds }; let score = structure.elementCount * t.elementCountFactor; - if (structure.isCoarseGrained) score *= t.coarseGrainedFactor; + if (structure.isCoarseGrained || structure.isCoarse) score *= t.coarseGrainedFactor; if (score > t.lowestElementCount) { return 'lowest'; } else if (score > t.lowerElementCount) {