Skip to content
Snippets Groups Projects
Unverified Commit d6043e7d authored by David Sehnal's avatar David Sehnal Committed by GitHub
Browse files

Merge pull request #411 from JonStargaryen/master

fix volume streaming for entries with multiple contour lists
parents 33ee4d04 8e432dfb
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Improve bonds assignment of coarse grained models: check for IndexPairBonds and exhaustive StructConn
- Fix unit mapping in bondedAtomicPairs MolScript query
- Improve pdb parsing: handle non unique atom and chain names (fixes #156)
- Fix volume streaming for entries with multiple contour lists
## [v3.5.0] - 2022-03-25
......
......@@ -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.
Finish editing this message first!
Please register or to comment