Skip to content
Snippets Groups Projects
Commit 324ab374 authored by Sebastian Bittrich's avatar Sebastian Bittrich
Browse files

fix volume streaming for entries with multiple contour lists

parent 33ee4d04
No related branches found
No related tags found
No related merge requests found
......@@ -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++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment