Exemplo n.º 1
0
    def __init__(self,
                 resolution=None,
                 cache=True,
                 manifest_file=None,
                 ccf_version=None,
                 base_uri=None,
                 version=None):

        if manifest_file is None:
            manifest_file = get_default_manifest_file('mouse_connectivity')

        if version is None:
            version = self.MANIFEST_VERSION

        if resolution is None:
            resolution = MouseConnectivityApi.VOXEL_RESOLUTION_25_MICRONS

        if ccf_version is None:
            ccf_version = MouseConnectivityApi.CCF_VERSION_DEFAULT

        super(MouseConnectivityCache,
              self).__init__(resolution,
                             reference_space_key=ccf_version,
                             cache=cache,
                             manifest=manifest_file,
                             version=version)

        self.api = MouseConnectivityApi(base_uri=base_uri)
    def __init__(self,
                 resolution=None,
                 cache=True,
                 manifest_file=None,
                 ccf_version=None,
                 base_uri=None,
                 version=None):

        if manifest_file is None:
            manifest_file = get_default_manifest_file('mouse_connectivity')

        if version is None:
            version = self.MANIFEST_VERSION

        if resolution is None:
            resolution = MouseConnectivityApi.VOXEL_RESOLUTION_25_MICRONS

        if ccf_version is None:
            ccf_version = MouseConnectivityApi.CCF_VERSION_DEFAULT

        super(MouseConnectivityCache, self).__init__(
            resolution, reference_space_key=ccf_version, cache=cache,
            manifest=manifest_file, version=version)

        self.api = MouseConnectivityApi(base_uri=base_uri)
Exemplo n.º 3
0
    def __init__(self, cache=True, manifest_file=None, base_uri=None):

        if manifest_file is None:
            manifest_file = get_default_manifest_file('cell_types')

        super(CellTypesCache, self).__init__(
            manifest=manifest_file, cache=cache, version=self.MANIFEST_VERSION)
        self.api = CellTypesApi(base_uri=base_uri)
Exemplo n.º 4
0
    def __init__(self, cache=True, manifest_file=None, base_uri=None):

        if manifest_file is None:
            manifest_file = get_default_manifest_file('cell_types')

        super(CellTypesCache, self).__init__(manifest=manifest_file,
                                             cache=cache,
                                             version=self.MANIFEST_VERSION)
        self.api = CellTypesApi(base_uri=base_uri)
    def __init__(self, cache=True, manifest_file=None, base_uri=None, api=None):

        if manifest_file is None:
            manifest_file = get_default_manifest_file('brain_observatory')

        super(BrainObservatoryCache, self).__init__(
            manifest=manifest_file, cache=cache, version=self.MANIFEST_VERSION)

        if api is None:
            self.api = BrainObservatoryApi(base_uri=base_uri)
        else:
            self.api = api
    def __init__(self,
                 cache=True,
                 manifest_file=None,
                 base_uri=None,
                 api=None):

        if manifest_file is None:
            manifest_file = get_default_manifest_file('brain_observatory')

        super(BrainObservatoryCache,
              self).__init__(manifest=manifest_file,
                             cache=cache,
                             version=self.MANIFEST_VERSION)

        if api is None:
            self.api = BrainObservatoryApi(base_uri=base_uri)
        else:
            self.api = api
Exemplo n.º 7
0
def test_get_default_manifest_file():
    assert get_default_manifest_file('brain_observatory') == 'brain_observatory/manifest.json'
    assert get_default_manifest_file('cell_types') == 'cell_types/manifest.json'
    assert get_default_manifest_file('mouse_connectivity') == 'mouse_connectivity/manifest.json'