Commit : Minor Correction ngfile.js

This commit is contained in:
Rafat Hussain 2017-08-14 16:44:47 +05:30
parent 9e08b4e93a
commit 55b1ec9159

View File

@ -863,13 +863,6 @@ app.controller('denoiseController', function ($scope, $http, $modal, wave) {
return;
}
if (method == "swt") {
var div = parseInt(Math.pow(2, J));
if ((N % div) != 0) {
alert("In SWT the data length should be divisible by 2^(Number of Decomposition Levels)");
return;
}
}
dnmethod = $scope.selected.dnmethod.dnmethod;
threshold = $scope.selected.threshold.threshold;
@ -881,6 +874,14 @@ app.controller('denoiseController', function ($scope, $http, $modal, wave) {
var J = $scope.selected.level;
//console.log(wave.sigData);
if (method == "swt") {
var div = parseInt(Math.pow(2, J));
if ((N % div) != 0) {
alert("In SWT the data length should be divisible by 2^(Number of Decomposition Levels)");
return;
}
}
wave.J = J;
wave.method = method;
wave.ext = ext;