chromatography
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -1002,3 +1002,8 @@ 'use strict'; | ||
function applyFilter$1(serie, percentage) { | ||
var basePeak = max(serie[1]); | ||
var basePeak; | ||
try { | ||
basePeak = max(serie[1]); | ||
} catch (e) { | ||
basePeak = 0; | ||
} | ||
var filtered = [[], []]; | ||
@@ -1005,0 +1010,0 @@ for (var i = 0; i < serie[0].length; i++) { |
{ | ||
"name": "chromatography", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Tools for storing, search and analize GC/MS spectra", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -20,3 +20,8 @@ import arrayMax from 'ml-array-max'; | ||
function applyFilter(serie, percentage) { | ||
var basePeak = arrayMax(serie[1]); | ||
var basePeak; | ||
try { | ||
basePeak = arrayMax(serie[1]); | ||
} catch (e) { | ||
basePeak = 0; | ||
} | ||
var filtered = [[], []]; | ||
@@ -23,0 +28,0 @@ for (var i = 0; i < serie[0].length; i++) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169079
4408