Ticket #92 (assigned enhancement)

Opened 6 months ago

Last modified 5 months ago

IF_cond_exp and IF_cond_alpha not implemented in nest1

Reported by: LaurentPerrinet Assigned to: apdavison (accepted)
Priority: minor Milestone: 0.4.2
Component: nest Version:
Keywords: Cc:

Description

they exist but are not implemented in nest1 (or generate an error for IF_cond_exp).

to reproduce:

In [1]: import pyNN.nest1 as sim

In [2]: sim.setup()

(snip)

In [5]: sim.create(sim.IF_cond_alpha)


NotImplementedError? Traceback (most recent call last)

/home/perrinet/NeuroTools/examples/single_neuron/<ipython console> in <module>()

/home/perrinet/python/site-packages/pyNN/nest1/init.py in create(cellclass, param_dict, n)

178 assert n > 0, 'n must be a positive integer' 179 if isinstance(cellclass, type):

--> 180 celltype = cellclass(param_dict)

181 cell_gids = pynest.create(celltype.nest_name, n) 182 cell_gids = [ID(pynest.getGID(gid)) for gid in cell_gids]

/home/perrinet/python/site-packages/pyNN/common.py in init(self, *args, **kwargs)

583 584 def init(self, *args, **kwargs):

--> 585 raise NotImplementedError?("The %s model is not available for this simulator." % self.class.name)

586 587 # ==============================================================================

NotImplementedError?: The IF_cond_alpha model is not available for this simulator.

In [6]: sim.create(sim.IF_cond_exp)


SLIError Traceback (most recent call last)

/home/perrinet/NeuroTools/examples/single_neuron/<ipython console> in <module>()

/home/perrinet/python/site-packages/pyNN/nest1/init.py in create(cellclass, param_dict, n)

179 if isinstance(cellclass, type): 180 celltype = cellclass(param_dict)

--> 181 cell_gids = pynest.create(celltype.nest_name, n)

182 cell_gids = [ID(pynest.getGID(gid)) for gid in cell_gids] 183 pynest.setDict(cell_gids, celltype.parameters)

/usr/local/lib/python2.5/site-packages/pynest/hl_api.py in create(objstr, count)

97 98 for n in range(count):

---> 99 sr(objstr+' Create')

100 cobj+=[spp()] 101 return cobj

/usr/local/lib/python2.5/site-packages/pynest/hl_api.py in catching_sr(cmd)

55 errorname = spp() 56 commandname = spp()

---> 57 raise SLIError, 'PyNEST SLI error in sr(): '+errorname+' in '+commandname

58 59 # set the deault sr function to the one that catches errors

SLIError: PyNEST SLI error in sr(): UndefinedName? in iaf_cond_exp

In [7]:

Change History

05/27/08 16:27:16 changed by apdavison

  • status changed from new to assigned.
  • milestone set to Release 0.4.0.

The NotImplementedError is not a problem: this is how it is supposed to work. The error with IF_cond_exp is a bug.

Both models used to exist, if I remember, but were provided in a FACETS-specific extension module to NEST. I'll take a look to see if I can get them back.

05/29/08 09:58:02 changed by LaurentPerrinet

This should be considered really as minor, since most people now use nest2 (soon released?)

06/04/08 19:33:14 changed by apdavison

  • milestone changed from Release 0.4.0 to Release 0.4.1.

06/12/08 16:22:55 changed by apdavison

  • milestone changed from Release 0.4.1 to Release 0.4.2.