-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: prepare cary500Loader * update!: support for fileCollection and guess the spectra type (#246) * update: support for fileCollection and classification of spectra * update: a few missing types, and prettify * test: disable temporarely getIVMeasurement * chore: rename files to fileCollection * chore: add todo to use FiltCollection.filter Co-authored-by: Luc Patiny <luc@patiny.com> * feat: add experimental cary500Loader * chore: update dependencies and add testcase * chore: add missing vitest import * chore: fix prettier Co-authored-by: Santiago Miranda <santimir@protonmail.com>
- Loading branch information
Showing
9 changed files
with
2,020 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -34,6 +34,7 @@ test('append', async () => { | |
'iv', | ||
'raman', | ||
'uv', | ||
'uvvis', | ||
'nmr1h', | ||
'mass', | ||
'other', | ||
|
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
14 changes: 14 additions & 0 deletions
14
src/app/data/loaders/proprietary/agilent/__tests__/cary500Loader.test.ts
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,14 @@ | ||
import { join } from 'path'; | ||
|
||
import { fileCollectionFromPath } from 'filelist-utils'; | ||
import { expect, test } from 'vitest'; | ||
|
||
import { cary500Loader } from '../cary500Loader'; | ||
|
||
test('cary500Loader', async () => { | ||
const fileCollection = await fileCollectionFromPath(join(__dirname, 'data')); | ||
// we should filter to keep only the right data | ||
const results = await cary500Loader(fileCollection); | ||
|
||
expect(results.uvvis.entries).toHaveLength(8); | ||
}); |
Oops, something went wrong.