def test_fetch_coords_seitzman_2018(request_mocker): bunch = atlas.fetch_coords_seitzman_2018() assert len(bunch.rois) == 300 assert len(bunch.radius) == 300 assert len(bunch.networks) == 300 assert len(bunch.regions) == 300 assert len(np.unique(bunch.networks)) == 14 assert len(np.unique(bunch.regions)) == 8 np.testing.assert_array_equal(bunch.networks, np.sort(bunch.networks)) assert bunch.description != '' assert bunch.regions[0] == "cortexL" bunch = atlas.fetch_coords_seitzman_2018(ordered_regions=False) assert np.any(bunch.networks != np.sort(bunch.networks))
def test_fetch_coords_seitzman_2018(): bunch = atlas.fetch_coords_seitzman_2018() assert_equal(len(bunch.rois), 300) assert_equal(len(bunch.radius), 300) assert_equal(len(bunch.networks), 300) assert_equal(len(bunch.regions), 300) assert_equal(len(np.unique(bunch.networks)), 14) assert_equal(len(np.unique(bunch.regions)), 8) np.testing.assert_array_equal(bunch.networks, np.sort(bunch.networks)) assert_not_equal(bunch.description, '') assert bunch.regions[0] == "cortexL" bunch = atlas.fetch_coords_seitzman_2018(ordered_regions=False) assert_true(np.any(bunch.networks != np.sort(bunch.networks)))