Skip to content
Snippets Groups Projects
Commit a302be8f authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: regression

parent 459a1d13
No related branches found
No related tags found
No related merge requests found
......@@ -1401,6 +1401,25 @@ def test_loadMeta():
assert img.getMeta('b') == 2
def test_loadMeta_nonBids():
with tempdir():
# non-bids file in a BIDS-like directory
imgfile = op.join('data', 'sub-01', 'anat', 'sub-01_T1w_nonbids.nii.gz')
os.makedirs(op.dirname(imgfile))
make_image(imgfile)
with open(op.join('data', 'dataset_description.json'), 'wt') as f:
pass
img = fslimage.Image(imgfile, loadMeta=True)
assert list(img.metaKeys()) == []
def test_loadMetadata():
with tempdir():
make_image('image.nii.gz')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment