Spaces:
Running
Running
Download python_embed/Lib/site-packages/mne/simulation/_metrics.py from Aluode/PerceptionLabPortable: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/mne/simulation/_metrics.py
- Command line
-
hf download hf://spaces/Aluode/PerceptionLabPortable/python_embed/Lib/site-packages/mne/simulation/_metrics.py
-
curl -L -o _metrics.py https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/mne/simulation/_metrics.py
404 Bytes
| # Authors: The MNE-Python contributors. | |
| # License: BSD-3-Clause | |
| # Copyright the MNE-Python contributors. | |
| import numpy as np | |
| def _check_stc(stc1, stc2): | |
| """Check that stcs are compatible.""" | |
| if stc1.data.shape != stc2.data.shape: | |
| raise ValueError("Data in stcs must have the same size") | |
| if np.all(stc1.times != stc2.times): | |
| raise ValueError("Times of two stcs must match.") | |