Skip to content

Commit

Permalink
minor bug fix in (Xte/Yte transpose)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Marquand committed Oct 12, 2020
1 parent 4d9fd55 commit e0440ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcntoolkit/normative.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ def estimate(covfile, respfile, **kwargs):
cvfolds = 1
Xte = fileio.load(testcov)
if len(Xte.shape) == 1:
Xte = Xte[:, np.newaxis].T
Xte = Xte[:, np.newaxis]
if testresp is not None:
Yte, testmask = load_response_vars(testresp, maskfile)
if len(Yte.shape) == 1:
Yte = Yte[:, np.newaxis].T
Yte = Yte[:, np.newaxis]
else:
sub_te = Xte.shape[0]
Yte = np.zeros([sub_te, Nmod])
Expand Down

0 comments on commit e0440ec

Please sign in to comment.