Comparing version 6.6.3 to 6.7.0
# Changelog | ||
## [6.7.0](https://www.github.com/mljs/global-spectral-deconvolution/compare/v6.6.3...v6.7.0) (2021-08-10) | ||
### Features | ||
* update ml-peak-shape-generator to 2.0.1 ([98128b8](https://www.github.com/mljs/global-spectral-deconvolution/commit/98128b85ea08bc1c9a3ebbecf4ddc2fca0b3e3b3)) | ||
### [6.6.3](https://www.github.com/mljs/global-spectral-deconvolution/compare/v6.6.2...v6.6.3) (2021-06-18) | ||
@@ -4,0 +11,0 @@ |
@@ -185,3 +185,3 @@ 'use strict'; | ||
let widthProcessor = shape.kind | ||
? mlPeakShapeGenerator.getShapeGenerator(shape.kind, shape.options).widthToFWHM | ||
? mlPeakShapeGenerator.getShape1D(shape.kind, shape.options).widthToFWHM | ||
: (x) => x; | ||
@@ -188,0 +188,0 @@ |
{ | ||
"name": "ml-gsd", | ||
"version": "6.6.3", | ||
"version": "6.7.0", | ||
"description": "Global Spectra Deconvolution", | ||
@@ -71,7 +71,7 @@ "main": "lib/index.js", | ||
"rollup": "^2.50.1", | ||
"spectrum-generator": "^4.7.1", | ||
"spectrum-generator": "^5.0.0", | ||
"xy-parser": "^3.1.1" | ||
}, | ||
"dependencies": { | ||
"ml-peak-shape-generator": "^1.0.0", | ||
"ml-peak-shape-generator": "^2.0.1", | ||
"ml-savitzky-golay-generalized": "2.0.3", | ||
@@ -78,0 +78,0 @@ "ml-spectra-fitting": "^1.0.0", |
@@ -13,6 +13,10 @@ import { gsd, optimizePeaks } from '..'; | ||
const data = generateSpectrum(peaks, { | ||
from: -1, | ||
to: 1, | ||
nbPoints: 1001, | ||
factor: 6, | ||
generator: { | ||
from: -1, | ||
to: 1, | ||
nbPoints: 1001, | ||
}, | ||
peaks: { | ||
factor: 6, | ||
}, | ||
}); | ||
@@ -53,3 +57,5 @@ | ||
const data = generateSpectrum(peaks, { from: -1, to: 1, nbPoints: 10001 }); | ||
const data = generateSpectrum(peaks, { | ||
generator: { from: -1, to: 1, nbPoints: 10001 }, | ||
}); | ||
@@ -89,3 +95,5 @@ let peakList = gsd(data, { | ||
const data = generateSpectrum(peaks, { from: -1, to: 1, nbPoints: 10001 }); | ||
const data = generateSpectrum(peaks, { | ||
generator: { from: -1, to: 1, nbPoints: 10001 }, | ||
}); | ||
@@ -122,7 +130,9 @@ let peakList = gsd(data, { | ||
const data = generateSpectrum(peaks, { | ||
from: -0.5, | ||
to: 0.5, | ||
nbPoints: 10001, | ||
shape: { | ||
kind: 'gaussian', | ||
generator: { | ||
from: -0.5, | ||
to: 0.5, | ||
nbPoints: 10001, | ||
shape: { | ||
kind: 'gaussian', | ||
}, | ||
}, | ||
@@ -129,0 +139,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
import { getShapeGenerator } from 'ml-peak-shape-generator'; | ||
import { getShape1D } from 'ml-peak-shape-generator'; | ||
import SG from 'ml-savitzky-golay-generalized'; | ||
@@ -175,3 +175,3 @@ | ||
let widthProcessor = shape.kind | ||
? getShapeGenerator(shape.kind, shape.options).widthToFWHM | ||
? getShape1D(shape.kind, shape.options).widthToFWHM | ||
: (x) => x; | ||
@@ -178,0 +178,0 @@ |
@@ -13,7 +13,9 @@ import { toMatchCloseTo } from 'jest-matcher-deep-close-to'; | ||
const data = generateSpectrum(peaks, { | ||
from: -0.5, | ||
to: 0.5, | ||
nbPoints: 101, | ||
shape: { | ||
kind: 'gaussian', | ||
generator: { | ||
from: -0.5, | ||
to: 0.5, | ||
nbPoints: 101, | ||
shape: { | ||
kind: 'gaussian', | ||
}, | ||
}, | ||
@@ -20,0 +22,0 @@ }); |
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
5869583
1906
+ Addedml-peak-shape-generator@2.0.2(transitive)