Skip to content
Snippets Groups Projects
Commit c6073b89 authored by JonStargaryen's avatar JonStargaryen
Browse files

ASA coloring wrong after removing part of a chain #132

parent f2b9dcea
No related branches found
No related tags found
No related merge requests found
......@@ -101,9 +101,8 @@ namespace AccessibleSurfaceArea {
}
export function getValue(location: StructureElement.Location, accessibleSurfaceArea: AccessibleSurfaceArea) {
const { getSerialIndex } = location.structure.root.serialMapping;
const { area, serialResidueIndex } = accessibleSurfaceArea;
const rSI = serialResidueIndex[getSerialIndex(location.unit, location.element)];
const rSI = serialResidueIndex[location.element];
if (rSI === -1) return -1;
return area[rSI];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment