forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""MNE sample dataset | ||
""" | ||
|
||
from .sample import (data_path, has_sample_data, get_version, | ||
requires_sample_data) | ||
from .sample import data_path, has_sample_data, get_version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,7 @@ | |
# Eric Larson <[email protected]> | ||
# License: BSD Style. | ||
|
||
import numpy as np | ||
|
||
from ...utils import verbose, get_config | ||
from ...utils import verbose | ||
from ...fixes import partial | ||
from ..utils import (has_dataset, _data_path, _data_path_doc, | ||
_get_version, _version_doc) | ||
|
@@ -29,14 +27,3 @@ def get_version(): | |
return _get_version('sample') | ||
|
||
get_version.__doc__ = _version_doc.format(name='sample') | ||
|
||
|
||
# Allow forcing of sample dataset skip | ||
def _skip_sample_data(): | ||
skip_sample = (get_config('MNE_SKIP_SAMPLE_DATASET_TESTS', 'false') == | ||
'true') | ||
skip = skip_sample or not has_sample_data() | ||
return skip | ||
|
||
requires_sample_data = np.testing.dec.skipif(_skip_sample_data, | ||
'Requires sample dataset') |