-
Notifications
You must be signed in to change notification settings - Fork 1
refactor!: switch to esm-only and update ml-gsd
#25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
a1f51db
25a2c23
adfe186
e0e14dd
5bf84c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CHANGELOG.md | ||
| lib | ||
| coverage | ||
| FilterXYSchema.json | ||
| FilterXYSchema.js |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| declare const schema: typeof import('./FilterXYSchema.json') | ||
| declare const schema: typeof import('./FilterXYSchema.json'); | ||
| export = schema; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| import { defineConfig, globalIgnores } from 'eslint/config'; | ||
| import cheminfo from 'eslint-config-cheminfo-typescript'; | ||
|
|
||
| export default [ | ||
| ...cheminfo, | ||
| { | ||
| languageOptions: {}, | ||
| rules: {}, | ||
| }, | ||
| ]; | ||
| export default defineConfig( | ||
| globalIgnores(['coverage', 'lib', 'FilterXYSchema.*']), | ||
| cheminfo, | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| import { DataXY } from 'cheminfo-types'; | ||
| import type { DataXY } from 'cheminfo-types'; | ||
| import { xEnsureFloat64, xyGrowingX } from 'ml-spectra-processing'; | ||
|
|
||
| import { FilterXYType } from './FilterXYType'; | ||
| import * as Filters from './filters/filters'; | ||
| import type { FilterXYType } from './FilterXYType.ts'; | ||
| import * as Filters from './filters/filters.ts'; | ||
|
|
||
| /** | ||
| * Apply filters on {x:[], y:[]} | ||
| * @param data | ||
|
Check warning on line 9 in src/filterXY.ts
|
||
| * @param filters | ||
|
Check warning on line 10 in src/filterXY.ts
|
||
| * @returns A very important number | ||
| */ | ||
| export function filterXY(data: DataXY, filters: FilterXYType[]) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| //@ts-expect-error no type definition for baselines | ||
| import { airPLSBaseline as baselineFct } from 'baselines'; | ||
| import { DataXY } from 'cheminfo-types'; | ||
| import type { DataXY } from 'cheminfo-types'; | ||
|
|
||
| export interface AirPLSBaselineFilter { | ||
| name: 'airPLSBaseline'; | ||
| } | ||
|
|
||
| /** | ||
|
Check warning on line 9 in src/filters/baseline/airPLSBaseline.ts
|
||
| * @param data | ||
|
Check warning on line 10 in src/filters/baseline/airPLSBaseline.ts
|
||
| */ | ||
| export function airPLSBaseline(data: DataXY<Float64Array>) { | ||
| data.y = baselineFct(data.y).correctedSpectrum; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| //@ts-expect-error no type definition for baselines | ||
| import { iterativePolynomialBaseline as baselineFct } from 'baselines'; | ||
| import { DataXY } from 'cheminfo-types'; | ||
| import type { DataXY } from 'cheminfo-types'; | ||
|
|
||
| export interface IterativePolynomialBaselineFilter { | ||
| name: 'iterativePolynomialBaseline'; | ||
| } | ||
|
|
||
| /** | ||
|
Check warning on line 9 in src/filters/baseline/iterativePolynomialBaseline.ts
|
||
| * @param data | ||
|
Check warning on line 10 in src/filters/baseline/iterativePolynomialBaseline.ts
|
||
| */ | ||
| export function iterativePolynomialBaseline(data: DataXY<Float64Array>) { | ||
| data.y = baselineFct(data.y).correctedSpectrum; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,31 @@ | ||
| export * from './scaling/centerMean'; | ||
| export * from './scaling/centerMedian'; | ||
| export * from './x/fromTo'; | ||
| export * from './scaling/normed'; | ||
| export * from './scaling/divideBySD'; | ||
| export * from './scaling/rescale'; | ||
| export * from './scaling/paretoNormalization'; | ||
| export * from './scaling/centerMean.ts'; | ||
| export * from './scaling/centerMedian.ts'; | ||
| export * from './x/fromTo.ts'; | ||
| export * from './scaling/normed.ts'; | ||
| export * from './scaling/divideBySD.ts'; | ||
| export * from './scaling/rescale.ts'; | ||
| export * from './scaling/paretoNormalization.ts'; | ||
|
|
||
| export * from './baseline/airPLSBaseline'; | ||
| export * from './baseline/iterativePolynomialBaseline'; | ||
| export * from './baseline/rollingAverageBaseline'; | ||
| export * from './baseline/rollingBallBaseline'; | ||
| export * from './baseline/rollingMedianBaseline'; | ||
| export * from './baseline/airPLSBaseline.ts'; | ||
| export * from './baseline/iterativePolynomialBaseline.ts'; | ||
| export * from './baseline/rollingAverageBaseline.ts'; | ||
| export * from './baseline/rollingBallBaseline.ts'; | ||
| export * from './baseline/rollingMedianBaseline.ts'; | ||
|
|
||
| export * from './sg/firstDerivative'; | ||
| export * from './sg/secondDerivative'; | ||
| export * from './sg/thirdDerivative'; | ||
| export * from './sg/savitzkyGolay'; | ||
| export * from './sg/firstDerivative.ts'; | ||
| export * from './sg/secondDerivative.ts'; | ||
| export * from './sg/thirdDerivative.ts'; | ||
| export * from './sg/savitzkyGolay.ts'; | ||
|
|
||
| export * from './x/ensureGrowing'; | ||
| export * from './x/reverseIfNeeded'; | ||
| export * from './x/equallySpaced'; | ||
| export * from './x/filterX'; | ||
| export * from './x/setMaxX'; | ||
| export * from './x/setMinX'; | ||
| export * from './x/calibrateX'; | ||
| export * from './x/xFunction'; | ||
| export * from './x/ensureGrowing.ts'; | ||
| export * from './x/reverseIfNeeded.ts'; | ||
| export * from './x/equallySpaced.ts'; | ||
| export * from './x/filterX.ts'; | ||
| export * from './x/setMaxX.ts'; | ||
| export * from './x/setMinX.ts'; | ||
| export * from './x/calibrateX.ts'; | ||
| export * from './x/xFunction.ts'; | ||
|
|
||
| export * from './scaling/yFunction'; | ||
| export * from './y/setMaxY'; | ||
| export * from './y/setMinY'; | ||
| export * from './scaling/yFunction.ts'; | ||
| export * from './y/setMaxY.ts'; | ||
| export * from './y/setMinY.ts'; |
Uh oh!
There was an error while loading. Please reload this page.