mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
[tests] cheap read test
This commit is contained in:
parent
8405ea948a
commit
06311b21bd
1 changed files with 5 additions and 6 deletions
|
@ -5,17 +5,16 @@ import pytest
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from ..fixtures import tmp_output_dir, set_config_vars
|
from ..fixtures import tmp_output_dir, set_config_vars, data_dir
|
||||||
|
|
||||||
from nwb_linkml.io.hdf5 import HDF5IO
|
from nwb_linkml.io.hdf5 import HDF5IO
|
||||||
from nwb_linkml.io.hdf5 import truncate_file
|
from nwb_linkml.io.hdf5 import truncate_file
|
||||||
|
|
||||||
# @pytest.mark.skip()
|
@pytest.mark.parametrize('dset', ['aibs.nwb'])
|
||||||
def test_hdf_read():
|
def test_hdf_read(data_dir, dset):
|
||||||
NWBFILE = Path('/Users/jonny/Dropbox/lab/p2p_ld/data/nwb/sub-738651046_ses-760693773.nwb')
|
NWBFILE = data_dir / dset
|
||||||
if not NWBFILE.exists():
|
|
||||||
return
|
|
||||||
io = HDF5IO(path=NWBFILE)
|
io = HDF5IO(path=NWBFILE)
|
||||||
|
# the test for now is just whether we can read it lol
|
||||||
model = io.read()
|
model = io.read()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue