spectrum-generator
Advanced tools
Comparing version 8.0.7 to 8.0.8
@@ -175,3 +175,3 @@ import { getShape1D } from 'ml-peak-shape-generator'; | ||
} | ||
return { x, y }; | ||
return { x: Float64Array.from(x), y: Float64Array.from(y) }; | ||
} | ||
@@ -178,0 +178,0 @@ if (copy) { |
@@ -130,3 +130,3 @@ import type { DataXY } from 'cheminfo-types'; | ||
*/ | ||
getSpectrum(options?: GetSpectrumOptions | boolean): DataXY<import("cheminfo-types").DoubleArray>; | ||
getSpectrum(options?: GetSpectrumOptions | boolean): DataXY<Float64Array>; | ||
/** | ||
@@ -142,3 +142,3 @@ * Resets the generator with an empty spectrum. | ||
*/ | ||
export declare function generateSpectrum(peaks: Peak1D[] | PeakSeries, options?: GenerateSpectrumOptions): DataXY; | ||
export declare function generateSpectrum(peaks: Peak1D[] | PeakSeries, options?: GenerateSpectrumOptions): DataXY<Float64Array>; | ||
export {}; |
@@ -181,3 +181,3 @@ "use strict"; | ||
} | ||
return { x, y }; | ||
return { x: Float64Array.from(x), y: Float64Array.from(y) }; | ||
} | ||
@@ -184,0 +184,0 @@ if (copy) { |
{ | ||
"name": "spectrum-generator", | ||
"version": "8.0.7", | ||
"version": "8.0.8", | ||
"description": "generate a spectrum from discrete peaks", | ||
@@ -66,4 +66,4 @@ "main": "./lib/index.js", | ||
"ml-peak-shape-generator": "^4.1.2", | ||
"ml-spectra-processing": "^12.0.0" | ||
"ml-spectra-processing": "^12.5.0" | ||
} | ||
} |
@@ -112,3 +112,3 @@ import type { DataXY } from 'cheminfo-types'; | ||
private shape: Shape1DInstance; | ||
private data: DataXY; | ||
private data: DataXY<Float64Array>; | ||
public constructor(options: OptionsSG1D = {}) { | ||
@@ -336,3 +336,3 @@ const { | ||
} | ||
return { x, y }; | ||
return { x: Float64Array.from(x), y: Float64Array.from(y) }; | ||
} | ||
@@ -384,3 +384,3 @@ if (copy) { | ||
options: GenerateSpectrumOptions = {}, | ||
): DataXY { | ||
): DataXY<Float64Array> { | ||
const { | ||
@@ -387,0 +387,0 @@ generator: generatorOptions, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
109749