Ejemplo n.º 1
0
 def build_hoc_section(self, cell, section, hocfile_obj, mta):
     build_hoc_default(cell=cell,
                       section=section,
                       hocfile_obj=hocfile_obj,
                       mta=mta,
                       units={},
                       nrnsuffix=self.sim_chl_name)
Ejemplo n.º 2
0
 def build_hoc_section(self, cell, section, hocfile_obj, mta):
     build_hoc_default(cell=cell,
                       section=section,
                       hocfile_obj=hocfile_obj,
                       mta=mta,
                       units=self.units,
                       nrnsuffix=self.buildparameters.suffix)
Ejemplo n.º 3
0
    def build_hoc_section(self, cell, section, hocfile_obj, mta):
        build_hoc_default(cell=cell, section=section, hocfile_obj=hocfile_obj, mta=mta , units={}, nrnsuffix=self.nrnsuffix)


        # ISSUE 'A': Hack around the reversal potential initialisation issue:
        if self.chlData.iv_default_erev:

            # Get the reversal potential out, takling care of the
            # units (expected in 'mV') :
            vrev = float(self.chlData.iv_default_erev)
            if self.chlData.units == 'Physiological Units':
                pass
            elif self.chlData.units == 'SI Units':
                vrev = vrev * 1000.
            else:
                assert False

            tmpl_dict = hocfile_obj[MHocFileData.Cells][cell]
            cell_name = tmpl_dict['cell_name']
            section_indexer = tmpl_dict['section_indexer']
            d = []
            for s in cell.morphology:
                d.append("""%s.internalsections [%d] { e%s=%f
                        }"""%(cell_name, section_indexer[s],
                            self.chlData.iv_ion,
                            vrev))
            hocfile_obj.add_to_section(MHOCSections.InitCellMembranes, "\n".join(d))
Ejemplo n.º 4
0
 def build_hoc_section(self, cell, section, hocfile_obj, mta):
     #Units = dict([(p.symbol, pq.Quantity(1., p.get_dimension().simplified)) for p in self.eqnset.parameters])
     build_hoc_default(cell=cell,
                       section=section,
                       hocfile_obj=hocfile_obj,
                       mta=mta,
                       units={},
                       nrnsuffix=self.nrnsuffix)
Ejemplo n.º 5
0
 def build_hoc_section(self, cell, section, hocfile_obj, mta):
     build_hoc_default(cell=cell, section=section, hocfile_obj=hocfile_obj, mta=mta , units={}, nrnsuffix=self.sim_chl_name)
Ejemplo n.º 6
0
 def build_hoc_section(self, cell, section, hocfile_obj, mta):
     #Units = dict([(p.symbol, pq.Quantity(1., p.get_dimension().simplified)) for p in self.eqnset.parameters])
     build_hoc_default(cell=cell, section=section, hocfile_obj=hocfile_obj, mta=mta , units={}, nrnsuffix=self.nrnsuffix)
Ejemplo n.º 7
0
 def build_hoc_section(self, cell, section, hocfile_obj, mta):
     build_hoc_default(cell=cell, section=section, hocfile_obj=hocfile_obj, mta=mta , units=self.units, nrnsuffix=self.buildparameters.suffix)