Skip to content

RipollSanchezMidRangeReader

get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT)

Uses RipollSanchezDataReader to load data on the mid range model of neuropedtidergic connectome

Returns:

Name Type Description
RipollSanchezDataReader

The initialised connectome reader

Source code in cect/RipollSanchezMidRangeReader.py
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
def get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT):
    """Uses ``RipollSanchezDataReader`` to load data on the mid range model of neuropedtidergic connectome

    Returns:
        RipollSanchezDataReader: The initialised connectome reader
    """
    if from_cache:
        from cect.ConnectomeDataset import (
            load_connectome_dataset_file,
            get_cache_filename,
        )

        return load_connectome_dataset_file(
            get_cache_filename(__file__.split("/")[-1].split(".")[0])
        )
    else:
        return RipollSanchezDataReader(MODEL)