Commit edd05a15 authored by Caillat Michel's avatar Caillat Michel
Browse files

Fixed a bug in str2Float when there is no range

parent 3cf0412e
......@@ -203,6 +203,9 @@ function str2FloatArray(s, range=false) {
if (range) {
w = y.map(function(t) { return ( !isNaN(t) && (range[0] <= t) && (t < range[1]) )});
}
else {
w = y.map(function(t) { return true;});
}
if (w.reduce(function(accum, u){ return accum && u}, true)) {
result = y;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment