Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spectrum-generator

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spectrum-generator - npm Package Compare versions

Comparing version 8.0.7 to 8.0.8

2

lib-esm/SpectrumGenerator.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc