From 6b65695c27d37fc1e65b96d167a0878f2989223b Mon Sep 17 00:00:00 2001 From: Alejandro de la Vega Date: Wed, 7 Apr 2021 17:01:01 -0500 Subject: [PATCH] Update bids/variables/io.py Co-authored-by: Chris Markiewicz --- bids/variables/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bids/variables/io.py b/bids/variables/io.py index 60c2d594e..6c23a0df8 100644 --- a/bids/variables/io.py +++ b/bids/variables/io.py @@ -205,7 +205,7 @@ def _load_time_variables(layout, dataset=None, columns=None, scan_length=None, except Exception as e: if scan_length is not None: duration = scan_length - nvols = int(scan_length / tr) + nvols = int(np.rint(scan_length / tr)) else: msg = ("Unable to extract scan duration from one or more " "BOLD runs, and no scan_length argument was provided "