Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onset of first superimposed stimulus (Pulse) is always at t=0 #124

Closed
pausz opened this issue Sep 13, 2017 · 0 comments
Closed

Onset of first superimposed stimulus (Pulse) is always at t=0 #124

pausz opened this issue Sep 13, 2017 · 0 comments
Assignees
Labels

Comments

@pausz
Copy link
Contributor

pausz commented Sep 13, 2017

When using superimposed stimuli, the parameter Onset of the first stimulus seems to be ignored an the Pulse starts at t=0.

Minimal configuration file to reproduce the error:

`

Time: 0.15 Deltat: 0.00001 
Nodes: 4096
Connection matrix:
From:  1  2 
To 1:  1  2  
To 2:  0  0  


Population 1: Excitatory
Length: 0.5
Q: 10
Firing: Function: Sigmoid Theta: 0.01292 Sigma: 0.0038 Qmax: 340
  Dendrite 1: alpha: 83 beta: 769
  Dendrite 2: alpha: 83 beta: 769

Population 2: Stimulation
 Length: 0.5
 Stimulus: Superimpose: 3
    Stimulus: Pulse - Onset: 0 02 Node: 2070 Amplitude: 2 Width: 1e-3 Frequency: 1 Pulses: 1
    Stimulus: Pulse - Onset: 0.05 Node: 2090 Amplitude: -2 Width: 1e-3 Frequency: 1 Pulses: 1
    Stimulus: Pulse - Onset: 0.08 Node: 1889 Amplitude: -2 Width: 1e-3 Frequency: 1 Pulses: 1

Propagator 1: Wave - Tau: 0 Range: 0.2 gamma: 30
Propagator 2: Map - 

Coupling 1:  Map - nu: 0
Coupling 2:  Map - nu: 1e-4

Output: Node: All Start: 0 Interval: 0.00001 
Population: 2.Q
Dendrite:
Propagator: 1
Coupling:   

`

Then in matlab:
`

nf_obj = nf.read('e-erps.output');
these_nodes = [2070, 2090, 1889];
[stim, ~] = nf.extract(nf_obj, 'Pop.2.Q');
figure(1); hold on
subplot(211)
plot(nf_obj.time, stim(:, these_nodes));

`

screenshot from 2017-09-13 15-54-22

After the fix the output Pop.2.Q looks

screenshot from 2017-09-13 16-50-41

@pausz pausz added the bug label Sep 13, 2017
@pausz pausz self-assigned this Sep 13, 2017
@pausz pausz closed this as completed in 520e022 Sep 13, 2017
@pausz pausz reopened this Sep 19, 2017
@pausz pausz closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant