Skip to content

Commit

Permalink
Add start and stop to spike and weight recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
akorgor committed Feb 26, 2024
1 parent 13797e6 commit 0112c5a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,21 @@
params_wr = {
"senders": nrns_in[:n_record_w] + nrns_rec[:n_record_w], # limit senders to subsample weights to record
"targets": nrns_rec[:n_record_w] + nrns_out, # limit targets to subsample weights to record from
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

params_sr = {
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

####################

mm_reg = nest.Create("multimeter", params_mm_reg)
mm_ad = nest.Create("multimeter", params_mm_ad)
mm_out = nest.Create("multimeter", params_mm_out)
sr = nest.Create("spike_recorder")
sr = nest.Create("spike_recorder", params_sr)
wr = nest.Create("weight_recorder", params_wr)

nrns_reg_record = nrns_reg[:n_record]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,20 @@
params_wr = {
"senders": nrns_in[:n_record_w] + nrns_rec[:n_record_w], # limit senders to subsample weights to record
"targets": nrns_rec[:n_record_w] + nrns_out, # limit targets to subsample weights to record from
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

params_sr = {
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

####################

mm_rec = nest.Create("multimeter", params_mm_rec)
mm_out = nest.Create("multimeter", params_mm_out)
sr = nest.Create("spike_recorder")
sr = nest.Create("spike_recorder", params_sr)
wr = nest.Create("weight_recorder", params_wr)

nrns_rec_record = nrns_rec[:n_record]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,20 @@
params_wr = {
"senders": nrns_in[:n_record_w] + nrns_rec[:n_record_w], # limit senders to subsample weights to record
"targets": nrns_rec[:n_record_w] + nrns_out, # limit targets to subsample weights to record from
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

params_sr = {
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

####################

mm_rec = nest.Create("multimeter", params_mm_rec)
mm_out = nest.Create("multimeter", params_mm_out)
sr = nest.Create("spike_recorder")
sr = nest.Create("spike_recorder", params_sr)
wr = nest.Create("weight_recorder", params_wr)

nrns_rec_record = nrns_rec[:n_record]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,20 @@
params_wr = {
"senders": nrns_in[:n_record_w] + nrns_rec[:n_record_w], # limit senders to subsample weights to record
"targets": nrns_rec[:n_record_w] + nrns_out, # limit targets to subsample weights to record from
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

params_sr = {
"start": duration["total_offset"],
"stop": duration["total_offset"] + duration["task"],
}

####################

mm_rec = nest.Create("multimeter", params_mm_rec)
mm_out = nest.Create("multimeter", params_mm_out)
sr = nest.Create("spike_recorder")
sr = nest.Create("spike_recorder", params_sr)
wr = nest.Create("weight_recorder", params_wr)

nrns_rec_record = nrns_rec[:n_record]
Expand Down

0 comments on commit 0112c5a

Please sign in to comment.