Skip to content

Commit

Permalink
fix glaring bug in timestamp for refractory filter,
Browse files Browse the repository at this point in the history
now the dt is correct (it was wrong by 10^12!)
  • Loading branch information
Tobi Delbruck authored and Tobi Delbruck committed Apr 4, 2024
1 parent 5b26cc1 commit 0539e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ synchronized public EventPacket filterPacket(EventPacket in) {
short x = (short) (i.x >>> subsampleBy), y = (short) (i.y >>> subsampleBy);
int lastt = lastTimestamps[x][y];
int deltat = (ts - lastt);
boolean longISI = lastt == DEFAULT_TIMESTAMP || deltat > correlationTimeS*1e-6f; // if refractoryPeriodUs==0, then all events with ISI==0 pass if passShortISIsEnabled
boolean longISI = lastt == DEFAULT_TIMESTAMP || deltat > correlationTimeS*1e6f; // if refractoryPeriodUs==0, then all events with ISI==0 pass if passShortISIsEnabled
if ((longISI && !passShortISIsEnabled) || (!longISI && passShortISIsEnabled)) {
// BasicEvent o = (BasicEvent) outItr.nextOutput();
// o.copyFrom(i);
Expand Down

0 comments on commit 0539e0c

Please sign in to comment.