Mercurial > hg > webaudioevaluationtool
changeset 2883:632ccfeab95a
Merge branch 'vnext' into Dev_main
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 26 Jun 2017 11:59:53 +0100 |
parents | 2706f3dd82e6 (current diff) 033027759cf7 (diff) |
children | 596e83ffc73a |
files | |
diffstat | 10 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Mon Jun 26 11:23:59 2017 +0100 +++ b/js/core.js Mon Jun 26 11:59:53 2017 +0100 @@ -1198,9 +1198,9 @@ // First extract those excluded from picking process var picked = []; - pool.forEach(function (e) { + pool.forEach(function (e, i) { if (e.alwaysInclude) { - picked.push(e); + picked.push(pool.splice(i, 1)[0]); } });
--- a/python/score_parser.py Mon Jun 26 11:23:59 2017 +0100 +++ b/python/score_parser.py Mon Jun 26 11:59:53 2017 +0100 @@ -85,7 +85,7 @@ audioElement = page.find("./audioelement/[@ref='"+ fragmentname+ "']") # Get the element for value in audioElement.findall('./value'): axisName = value.get('interface-name') - if axisName == None: + if axisName == None or axisName == "null": axisName = 'default' axisStore = storage[page_name]['axis'][axisName] if hasattr(value, 'text'):