From be47988c4ac86e1cc9c26cf296d6392beac67f05 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Mon, 25 Feb 2019 14:23:59 -0800 Subject: [PATCH] fixed ihm mmcif parsing --- src/mol-model-formats/structure/mmcif/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mol-model-formats/structure/mmcif/parser.ts b/src/mol-model-formats/structure/mmcif/parser.ts index 1230ad954..17d4f3a5b 100644 --- a/src/mol-model-formats/structure/mmcif/parser.ts +++ b/src/mol-model-formats/structure/mmcif/parser.ts @@ -282,7 +282,7 @@ async function readIHM(ctx: RuntimeContext, format: mmCIF_Format, formatData: Fo const { ihm_model_list } = format.data; const entities: Entities = { data: format.data.entity, getEntityIndex: Column.createIndexer(format.data.entity.id) }; - if (!format.data.atom_site.ihm_model_id.isDefined) { + if (format.data.atom_site._rowCount && !format.data.atom_site.ihm_model_id.isDefined) { throw new Error('expected _atom_site.ihm_model_id to be defined') } -- GitLab