Skip to content

Commit 5ad88da

Browse files
committed
spm_setup bug fixed
1 parent cd3d8f1 commit 5ad88da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-rtspm"
3-
version = "0.2.7"
3+
version = "0.2.8"
44
description = "Python adaptation of SPM functions for real-time fMRI analysis"
55
authors = ["OpenNFT Team <opennft@gmail.com>"]
66
license = "GPL-3.0"

rtspm/_spm_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def spm_setup(tr, nscan, mean_vol_template, offsets, first_inds, prot_names):
4646

4747
if x.size > 0:
4848
x = x[np.array(range(0, n)) * fmri_t + fmri_t0 + 32, :]
49+
spm["xX_x"] = np.hstack((x, np.ones((n, 1))))
4950

5051
spm["sess_row"] = np.array(range(0, n), ndmin=2)
51-
spm["xX_x"] = np.hstack((x, np.ones((n, 1))))
5252

5353
k = {"h_param": spm["xX_K_HParam"], "row": spm["sess_row"], "RT": spm["xY_RT"]}
5454

0 commit comments

Comments
 (0)