From 873d88763f5bfc74a20f4ee7b6135067685cac51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Sat, 1 Feb 2020 17:50:45 +0100 Subject: [PATCH] Fix bug in data --- static/js/data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/data.js b/static/js/data.js index a39af9de..eb7ef1ec 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -279,9 +279,9 @@ class dataFileBase { type = m[1] } } - var val = ((vals.length >= 7 + hasType) ? new stringFloat(vals[6 + hasType], 10) : NaN) - var oscilatorForces = ((vals.length >= 8 + hasType) ? new stringFloat(vals[7 + hasType], 10) : NaN) - var T1 = ((vals.length >= 9 + hasType) ? new stringFloat(vals[8 + hasType], 10) : NaN) + var val = ((vals.length >= 7 + hasType) ? new stringFloat(vals[6 + hasType]) : NaN) + var oscilatorForces = ((vals.length >= 8 + hasType) ? new stringFloat(vals[7 + hasType]) : NaN) + var T1 = ((vals.length >= 9 + hasType) ? new stringFloat(vals[8 + hasType]) : NaN) var isUnsafe = ((vals.length >= 10 + hasType) ? vals[9 + hasType] === true.toString() : false) var ex = new excitationValue(start, end, type, val, oscilatorForces, T1, isUnsafe); if (this.VertExcitationKind) {