From 27ef44b8332c7da5f4e5353a77231e50f5654c21 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alexander.rose@weirdbyte.de> Date: Tue, 9 Jun 2020 17:29:29 -0700 Subject: [PATCH] throwing in hasNdbStructNtcCategories breaks non-mmcif files --- src/extensions/dnatco/confal-pyramids/property.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/dnatco/confal-pyramids/property.ts b/src/extensions/dnatco/confal-pyramids/property.ts index 00dcf95cc..2fe28220e 100644 --- a/src/extensions/dnatco/confal-pyramids/property.ts +++ b/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'); } -- GitLab