Skip to content
Snippets Groups Projects
Commit aad69f25 authored by Alexander Rose's avatar Alexander Rose
Browse files

cleanup

parent 30006d42
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ export function DistanceRestraintRepresentation(ctx: RepresentationContext, getP
}
export const DistanceRestraintRepresentationProvider: StructureRepresentationProvider<typeof DistanceRestraintParams> = {
label: 'DistanceRestraint',
label: 'Distance Restraint',
description: 'Displays cross-link distance restraints.',
factory: DistanceRestraintRepresentation,
getParams: getDistanceRestraintParams,
......
......@@ -96,7 +96,7 @@ export function markPolymerElement(loci: Loci, structureGroup: StructureGroup, a
const unitIndexMin = OrderedSet.findPredecessorIndex(elements, offsets[rI])
const unitIndexMax = OrderedSet.findPredecessorIndex(elements, offsets[rI + 1] - 1)
const unitIndexInterval = Interval.ofRange(unitIndexMin, unitIndexMax)
if(!OrderedSet.isSubset(e.indices, unitIndexInterval)) return
if (!OrderedSet.isSubset(e.indices, unitIndexInterval)) return
const eI = getElementIndexForAtomRole(model, rI, 'trace')
const idx = OrderedSet.indexOf(e.unit.polymerElements, eI)
if (idx !== -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment