Ticket #38 (assigned enhancement)

Opened 11 months ago

Last modified 2 months ago

Standard way to specify a time varying current injection

Reported by: apdavison Assigned to: apdavison (accepted)
Priority: minor Milestone: 0.5.0
Component: common Version: trunk
Keywords: Cc:

Description

It would be nice to be able to inject a time varying current into any standard cell in a simulator-independent way. This could be done in two ways:

(1) Create a new standard cell, CurrentSource, and extend connect(), Projection to allow non-synaptic connections

(2) Create an Electrode class, then either

(a) allow the i_offset parameter of each standard cell to be an Electrode object rather than a float.

(b) create an inject() function in the low-level API and/or an inject() method for the ID object.

I don't much like (1), since it does not fit with the general principle of spike-based communication, although if we allow gap-junction connections in future, it would fit better.

Concerning (2), if we add RC-circuit properties to the Electrode class, it could also be used to extend record_v().

(2b) would probably be simpler to implement than (2a)

Change History

07/15/08 14:45:12 changed by apdavison

  • status changed from new to assigned.

First attempt in r413. I went for (2b) above, although I've named the classes CurrentSource rather than Electrode, since this makes more sense (you don't inject an electrode, you insert or attach it).

For the ticket to be closed, need to finish the implementation for neuron2 and nest2 and add one for pcsim. Should also add some further source types, i.e. ACSource and NoisyCurrentSource (possibly multiple classes for different noise properties, possibly a single, parameterisable class).

09/19/08 15:48:40 changed by apdavison

Also see #115

09/24/08 14:17:39 changed by LaurentPerrinet

  • priority changed from major to minor.

works fine, included that in NeuroTools examples. I had to do

for cell in output:

cell.inject(current_source)

certainly easy to add a method for a Population object