def setUpClass(cls):
        cell = SpineCell(name="cell")
        cls.soma = cell.add_sec("soma", add_pas=True, nseg=10)
        cell._add_spines_to_section(cls.soma, "new", 0.5, 1, 1, 0.5, 0.5,
                                    None, None, None, None,
                                    add_pas=False)
        cls.head = cell.heads[0]
        cls.neck = cell.necks[0]
        cell2 = SpineCell(name="cell2")
        cls.soma2 = cell2.add_sec("soma", nseg=10, add_pas=True)
        cell2._add_spines_to_section(cls.soma2, "new", 0.3, .5, .5, 0.3, 0.3,
                                     None, None, None, None,
                                     add_pas=True)
        cls.head2 = cell2.heads[0]
        cls.neck2 = cell2.necks[0]

        cell3 = SpineCell(name="cell3")
        cls.soma3 = cell3.add_sec("soma", add_pas=True)
        cell3._add_spines_to_section(cls.soma3, "new", 0.3, .5, .5, 0.3, 0.3,
                                     -80, 1/30000, 100, 2)
        cls.head3 = cell3.heads[0]
        cls.neck3 = cell3.necks[0]

        cls.cell4 = SpineCell(name="cell4")
        cls.soma4 = cls.cell4.add_sec("soma", add_pas=True)
        cls.cell4._add_spines_to_section(cls.soma4, "new",
                                         [0.1, 0.2, 0.4, 0.8],
                                         .5, .5, 0.4, 0.4,
                                         -80, 1/40000, 100, 2)
        cls.head4 = cls.cell4.heads
        cls.neck4 = cls.cell4.necks
Exemple #2
0
    def setUpClass(cls):
        cell = SpineCell(name="cell")
        cls.soma = cell.add_sec("soma", g_pas=1 / 30000, E_rest=-76,
                                ra=40, cm=1.1, nseg=100, add_pas=True)
        cls.e_pas1, cls.g_pas1, cls.ra1, \
            cls.cm1 = establish_electric_properties(cls.soma,
                                                    None, None,
                                                    None, None)

        cls.e_pas2, cls.g_pas2, cls.ra2, \
            cls.cm2 = establish_electric_properties(cls.soma,
                                                    -79, 1 / 20000,
                                                    50, 1.2)
        cls.dend = cell.add_sec("dend")
        cls.e_pas3, cls.g_pas3, cls.ra3, \
            cls.cm3 = establish_electric_properties(cls.dend, None, None,
                                                    None, None)
Exemple #3
0
 def setUpClass(cls):
     cell = SpineCell(name="cell")
     cls.soma = cell.add_sec("soma", nseg=10)