init
This commit is contained in:
commit
30a9eef102
2999 changed files with 1898721 additions and 0 deletions
11
tests/test_io.py
Normal file
11
tests/test_io.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import pytest
|
||||
import os.path
|
||||
|
||||
from optifik import io
|
||||
|
||||
path = os.path.join('tests', 'spectra', 'sample1', '000266.xy')
|
||||
|
||||
def test_load_file():
|
||||
data = io.load_spectrum(path)
|
||||
assert(len(data) == 2)
|
||||
assert(data[0].shape == data[1].shape)
|
Loading…
Add table
Add a link
Reference in a new issue