浏览代码

simplify ter record check

Alexander Rose 2 年之前
父节点
当前提交
1c9f3ed9fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mol-model-formats/structure/pdb/atom-site.ts

+ 1 - 1
src/mol-model-formats/structure/pdb/atom-site.ts

@@ -91,7 +91,7 @@ export function getAtomSite(sites: AtomSiteTemplate, terIndices: Set<number>): {
         if (asymIdCounts.has(asymId)) {
         if (asymIdCounts.has(asymId)) {
             // only change the chains name if there are TER records
             // only change the chains name if there are TER records
             // otherwise assume repeated chain name use is from interleaved chains
             // otherwise assume repeated chain name use is from interleaved chains
-            if (terIndices.size > 0 && asymIdChanged || terIndices.has(i)) {
+            if (terIndices.has(i)) {
                 const asymIdCount = asymIdCounts.get(asymId)! + 1;
                 const asymIdCount = asymIdCounts.get(asymId)! + 1;
                 asymIdCounts.set(asymId, asymIdCount);
                 asymIdCounts.set(asymId, asymIdCount);
                 currLabelAsymId = `${asymId}_${asymIdCount}`;
                 currLabelAsymId = `${asymId}_${asymIdCount}`;