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

fixed ihm mmcif parsing

parent 733df07e
No related branches found
No related tags found
No related merge requests found
......@@ -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')
}
......
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