소스 검색

throwing in hasNdbStructNtcCategories breaks non-mmcif files

Alexander Rose 4 년 전
부모
커밋
27ef44b833
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/extensions/dnatco/confal-pyramids/property.ts

+ 1 - 1
src/extensions/dnatco/confal-pyramids/property.ts

@@ -74,7 +74,7 @@ export namespace ConfalPyramids {
     }
 
     function hasNdbStructNtcCategories(model: Model): boolean {
-        if (!MmcifFormat.is(model.sourceData)) throw new Error('Data format must be mmCIF');
+        if (!MmcifFormat.is(model.sourceData)) return false;
         const names = (model.sourceData).data.frame.categoryNames;
         return names.includes('ndb_struct_ntc_step') && names.includes('ndb_struct_ntc_step_summary');
     }