diff options
| -rw-r--r-- | guix-science/packages/electrophysiology.scm | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/guix-science/packages/electrophysiology.scm b/guix-science/packages/electrophysiology.scm index 3964c49..0afcdd7 100644 --- a/guix-science/packages/electrophysiology.scm +++ b/guix-science/packages/electrophysiology.scm | |||
| @@ -3554,7 +3554,15 @@ Key features: | |||
| 3554 | (list | 3554 | (list |
| 3555 | #:phases | 3555 | #:phases |
| 3556 | #~(modify-phases %standard-phases | 3556 | #~(modify-phases %standard-phases |
| 3557 | (add-after 'unpack 'fix-matplotlib | 3557 | (add-after 'unpack 'fix-numpy-compatibility |
| 3558 | (lambda _ | ||
| 3559 | (substitute* "tensorpac/pac.py" | ||
| 3560 | (("np\\.random\\.randint\\(0, 10000, size=1\\)") | ||
| 3561 | "np.random.randint(0, 10000, size=1)[0]")) | ||
| 3562 | (substitute* "tensorpac/utils.py" | ||
| 3563 | (("interpolation='nearest'") | ||
| 3564 | "method='nearest'")))) | ||
| 3565 | (add-after 'unpack 'fix-matplotlib-compatibility | ||
| 3558 | (lambda _ | 3566 | (lambda _ |
| 3559 | (substitute* "tensorpac/utils.py" | 3567 | (substitute* "tensorpac/utils.py" |
| 3560 | (("basex") | 3568 | (("basex") |
| @@ -3563,15 +3571,13 @@ Key features: | |||
| 3563 | (lambda _ | 3571 | (lambda _ |
| 3564 | (setenv "NUMBA_CACHE_DIR" | 3572 | (setenv "NUMBA_CACHE_DIR" |
| 3565 | (getcwd))))))) | 3573 | (getcwd))))))) |
| 3566 | (propagated-inputs (list python-joblib | 3574 | (propagated-inputs (list python-joblib python-numpy python-scipy)) |
| 3567 | python-matplotlib | 3575 | (native-inputs (list python-matplotlib |
| 3568 | python-mne | 3576 | python-mne |
| 3569 | python-numba | 3577 | python-pandas |
| 3570 | python-numpy | 3578 | python-pytest |
| 3571 | python-pandas | 3579 | python-setuptools |
| 3572 | python-scipy | 3580 | python-statsmodels)) |
| 3573 | python-statsmodels)) | ||
| 3574 | (native-inputs (list python-pytest python-setuptools)) | ||
| 3575 | (home-page "http://etiennecmb.github.io/tensorpac/") | 3581 | (home-page "http://etiennecmb.github.io/tensorpac/") |
| 3576 | (synopsis "Tensor-based Phase-Amplitude Coupling") | 3582 | (synopsis "Tensor-based Phase-Amplitude Coupling") |
| 3577 | (description "Tensor-based Phase-Amplitude Coupling.") | 3583 | (description "Tensor-based Phase-Amplitude Coupling.") |
