Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caillat Michel
yafits
Commits
edd05a15
Commit
edd05a15
authored
Nov 25, 2019
by
Caillat Michel
Browse files
Fixed a bug in str2Float when there is no range
parent
3cf0412e
Changes
1
Hide whitespace changes
Inline
Side-by-side
yafitsv/public/javascript/olqv_utils.js
View file @
edd05a15
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment