|
@@ -69,7 +69,8 @@ export async function getContourLevel(provider: 'emdb' | 'pdbe', plugin: PluginC
|
|
|
export async function getContourLevelEmdb(plugin: PluginContext, taskCtx: RuntimeContext, emdbId: string) {
|
|
|
const emdbHeaderServer = plugin.config.get(PluginConfig.VolumeStreaming.EmdbHeaderServer);
|
|
|
const header = await plugin.fetch({ url: `${emdbHeaderServer}/${emdbId.toUpperCase()}/header/${emdbId.toLowerCase()}.xml`, type: 'xml' }).runInContext(taskCtx);
|
|
|
- const contours = header.getElementsByTagName('contour');
|
|
|
+ const map = header.getElementsByTagName('map')[0];
|
|
|
+ const contours = map.getElementsByTagName('contour');
|
|
|
|
|
|
let primaryContour = contours[0];
|
|
|
for (let i = 1; i < contours.length; i++) {
|