Skip to content
Snippets Groups Projects
Commit f8aae8cb authored by dsehnal's avatar dsehnal
Browse files

skip Coarse models in export extension

parent 00c25170
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
*/
import { utf8ByteCount, utf8Write } from '../../mol-io/common/utf8';
import { to_mmCIF } from '../../mol-model/structure';
import { to_mmCIF, Unit } from '../../mol-model/structure';
import { PluginContext } from '../../mol-plugin/context';
import { Task } from '../../mol-task';
import { getFormattedTime } from '../../mol-util/date';
......@@ -38,6 +38,10 @@ function _exportHierarchy(plugin: PluginContext, options?: { format?: 'cif' | 'b
plugin.log.warn(`[Export] Skipping ${_s.cell.obj?.label}: Multimodel exports not supported.`);
continue;
}
if (s.units.some(u => !Unit.isAtomic(u))) {
plugin.log.warn(`[Export] Skipping ${_s.cell.obj?.label}: Non-atomic model exports not supported.`);
continue;
}
const name = entryMap.has(s.model.entryId)
? `${s.model.entryId}_${entryMap.get(s.model.entryId)! + 1}.${format}`
......
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