コード例 #1
0
def test_real_ds(path, opath):
    # just the dataset, no data, export works from aggregated metadata only
    ds = install(source=get_bids_dataset().path, path=path, reckless=True)
    ds.bids2scidata(
        output=opath,
        repo_name="dummy",
        repo_accession='ds1',
        repo_url='http://example.com',
    )
    # smoke test
    eq_(sorted(listdir(opath)), [
        'a_mri_bold.txt', 'a_mri_t1w.txt', 'i_Investigation.txt', 's_study.txt'
    ])
コード例 #2
0
def test_validate_bids_fixture():
    bids_ds = get_bids_dataset()
    # dicom source dataset is absent
    eq_(len(bids_ds.subdatasets(fulfilled=True, return_type='list')), 0)