Skip to content

Commit 54af3ff

Browse files
committed
Use python_requires to require higher python versions.
Also, use the matmul operator once more.
1 parent 70b8843 commit 54af3ff

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ sudo: false
33

44
python:
55
- 3.6
6-
- 3.4
7-
- 2.7
86

97
install:
108
- travis_retry pip install -r requirements-dev.txt

nitime/algorithms/event_related.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ def fir(timeseries, design):
5555
and Unbiased Approach. Human Brain Mapping, 11:249-260
5656
5757
"""
58-
h = np.array(np.dot(np.dot(linalg.pinv(np.dot(design.T, design)),
59-
design.T),
60-
timeseries.T))
61-
return h
58+
return linalg.pinv(design.T @design) @ design.T @ timeseries.T
6259

6360

6461
def freq_domain_xcorr(tseries, events, t_before, t_after, Fs=1):

nitime/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@
9696
VERSION = __version__
9797
PACKAGE_DATA = {"nitime": ["LICENSE", "tests/*.txt", "tests/*.npy",
9898
"data/*.nii.gz", "data/*.txt", "data/*.csv"]}
99+
PYTHON_REQUIRES = ">=3.5"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
package_data=PACKAGE_DATA,
4646
install_requires=REQUIRES,
4747
requires=REQUIRES,
48+
python_requires=PYTHON_REQUIRES,
4849
)
4950

5051
try:

0 commit comments

Comments
 (0)