Commits

Richard Gerkin committed 7f462cc

Fixed event epoch splitting

Comments (0)

Files changed (1)

IgorExchange/Neuralynx/Neuralynx Analysis2.ipf

 			string name=stringfromlist(i,waves)
 			wave /z w=events:$name
 			if(waveexists(w))
-				extract /o w,epochDF:$name, (Times>epochTimes[epoch] && (Times<epochTimes[epoch+1] || (epoch+1)>=numpnts(epochTimes)))
+				extract /o w,epochDF:$name, (Times>=epochTimes[epoch] && (Times<epochTimes[epoch+1] || (epoch+1)>=numpnts(epochTimes)))
 				string /g epochDF:type=type
 			endif
 		endfor