move data
This commit is contained in:
parent
f03e26a3e4
commit
74cea0083d
2996 changed files with 1376 additions and 111 deletions
|
@ -1,11 +1,16 @@
|
|||
import pytest
|
||||
import os.path
|
||||
from pathlib import Path
|
||||
|
||||
from optifik import io
|
||||
|
||||
path = os.path.join('tests', 'spectra', 'sample1', '000266.xy')
|
||||
|
||||
def test_load_file():
|
||||
@pytest.fixture
|
||||
def test_data_dir():
|
||||
return Path(__file__).parent.parent / 'data'
|
||||
|
||||
|
||||
def test_load_file(test_data_dir):
|
||||
path = test_data_dir / 'spectraLorene' / 'sample1' / '000266.xy'
|
||||
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