Skip to content

OlivaresModelReader

fig = cds2.to_plotly_graph_fig(list(view.synclass_sets.keys())[0], view) module-attribute

fig, _ = cds2.to_plotly_matrix_fig( list(view.synclass_sets.keys())[2], view, )

get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT)

Uses NeuroMLDataReader to load data from the NeuroML model

Returns:

Name Type Description
NeuroMLDataReader

The initialised connectome reader

Source code in cect/OlivaresModelReader.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
def get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT):
    """Uses ``NeuroMLDataReader`` to load data from the NeuroML model

    Returns:
        NeuroMLDataReader: The initialised connectome reader
    """
    if (
        from_cache and False
    ):  ####################################################################################################### TODO Remove!
        from cect.ConnectomeDataset import (
            load_connectome_dataset_file,
            get_cache_filename,
        )

        return load_connectome_dataset_file(get_cache_filename(__name__.split(".")[1]))
    else:
        return NeuroMLDataReader(filename)