def test_explicit_neuron_node_id(): neuron_node_id = 1 fig = dendrogram.draw(_create_test_neuron(), _create_test_synapses([neuron_node_id, 2]), neuron_node_id) # returns a string that contains the HTML <div>, without saving to file plot(fig, auto_open=False, output_type='div')
def test_implicit_invalid_neuron_node_id(): neuron_node_id = 1 with assert_raises(ValueError) as cm: dendrogram.draw(_create_test_neuron(), _create_test_synapses([neuron_node_id, 2])) assert 'neuron_node_id' in cm.exception.args[0].lower()
def test_implicit_valid_neuron_node_id(): neuron_node_id = 1 fig = dendrogram.draw(_create_test_neuron(), _create_test_synapses([neuron_node_id])) plot(fig, auto_open=False)
def test_explicit_neuron_node_id(): neuron_node_id = 1 fig = dendrogram.draw(_create_test_neuron(), _create_test_synapses([neuron_node_id, 2]), neuron_node_id) plot(fig, auto_open=False)