Skip to content

White L4

get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT)

Uses WhiteDataReader to load data on the JSH series - a fourth stage (L4) larva

Returns:

Name Type Description
WhiteDataReader

The initialised connectome reader

Source code in cect/White_L4.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
def get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT):
    """Uses ``WhiteDataReader`` to load data on the JSH series - a fourth stage (L4) larva

    Returns:
        WhiteDataReader: 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 WhiteDataReader(filename)