From 05b1a394724c2bdb64376ebfdfe8faeeb7885f25 Mon Sep 17 00:00:00 2001 From: Yibei Chen Date: Mon, 9 Dec 2024 17:57:11 -0500 Subject: [PATCH] maintain precise timing --- glmsingle/hrf/gethrf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glmsingle/hrf/gethrf.py b/glmsingle/hrf/gethrf.py index c503ae4..4cc08dd 100644 --- a/glmsingle/hrf/gethrf.py +++ b/glmsingle/hrf/gethrf.py @@ -21,7 +21,7 @@ def getcanonicalhrf(duration, tr): np.ones(int(np.max([1, alt_round(duration/trold)]))) ) - sampler = np.asarray(np.arange(0, int((hrf.shape[0]-1)*trold), tr)) + sampler = np.asarray(np.arange(0, (hrf.shape[0]-1)*trold, tr)) # resample to desired TR hrf = pchip(