-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update ir-spectrum and add more filters
- Loading branch information
Showing
9 changed files
with
47 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import cheminfo from 'eslint-config-cheminfo'; | ||
|
||
export default [ | ||
...cheminfo, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
__dirname: 'readonly', | ||
}, | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ import { spectrumCallback } from './utils/spectrumCallback'; | |
* @param {ArrayBuffer|string} jcamp | ||
Check warning on line 7 in src/from/fromJcamp.js
|
||
* @param {object} [options={}] | ||
Check warning on line 8 in src/from/fromJcamp.js
|
||
* @param {string|number} [options.id=Math.random()] | ||
Check warning on line 9 in src/from/fromJcamp.js
|
||
* @param {string} [options.label=options.id] human redeable label | ||
* @param {string} [options.spectrumCallback] a callback to apply on variables when creating spectrum. Default will add a and t | ||
* @return {Analysis} - New class element with the given data | ||
* @param {string} [options.label=options.id] - human redeable label | ||
* @param {string} [options.spectrumCallback] - a callback to apply on variables when creating spectrum. Default will add a and t | ||
* @returns {Analysis} - New class element with the given data | ||
*/ | ||
export function fromJcamp(jcamp, options = {}) { | ||
return commonFromJcamp(jcamp, { ...options, spectrumCallback }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ import { spectrumCallback } from './utils/spectrumCallback'; | |
* @param {ArrayBuffer} buffer | ||
Check warning on line 8 in src/from/fromSPC.js
|
||
* @param {object} [options={}] | ||
Check warning on line 9 in src/from/fromSPC.js
|
||
* @param {object} [options.id=Math.random()] | ||
Check warning on line 10 in src/from/fromSPC.js
|
||
* @param {string} [options.label=options.id] human redeable label | ||
* @param {string} [options.spectrumCallback] a callback to apply on variables when creating spectrum. Default will add a and t | ||
* @return {Analysis} - New class element with the given data | ||
* @param {string} [options.label=options.id] - human redeable label | ||
* @param {string} [options.spectrumCallback] - a callback to apply on variables when creating spectrum. Default will add a and t | ||
* @returns {Analysis} - New class element with the given data | ||
*/ | ||
|
||
export function fromSPC(buffer, options = {}) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters