Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushikphy committed Apr 9, 2022
1 parent ee55817 commit f4c625b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/dataOp.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ function filterData() {
let condition = $("#flSel")[0].selectedIndex;
let thrsh = parseFloat($("#flc").val());
let fillVal = parseFloat($("#flf").val());
let colmn = $("#flcl").val().split(',').map(x => parseFloat(x) - 1);
let colmn = $("#flcl").val().split(',').map(x => {
let xT = parseFloat(x);
if(xT>data[0].length) alertElec('Invalid column number');
return parseFloat(x) - 1;
});

data = applyCutOFF(data, colmn, condition, thrsh, fillVal)

Expand Down

0 comments on commit f4c625b

Please sign in to comment.