This commit is contained in:
François Boulogne 2025-05-21 13:32:32 +02:00
commit 30a9eef102
2999 changed files with 1898721 additions and 0 deletions

11
tests/test_io.py Normal file
View 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)