Did I find the right examples for you? yes no

All Samples(50)  |  Call(50)  |  Derive(0)  |  Import(0)

src/m/n/mne-0.7.1/mne/datasets/sample/sample.py   mne(Download)
has_sample_data = has_dataset('sample')
skip_sample = get_config('MNE_SKIP_SAMPLE_DATASET_TESTS', 'false') == 'true'
requires_sample_data = np.testing.dec.skipif(not has_dataset('sample')
                                             or skip_sample,
                                             'Requires sample dataset')

src/m/n/mne-python-HEAD/mne/datasets/sample/sample.py   mne-python(Download)
    return skip
 
requires_sample_data = np.testing.dec.skipif(_skip_sample_data,
                                             'Requires sample dataset')
 

src/m/n/mne-0.7.1/mne/utils.py   mne(Download)
 
 
requires_mne = np.testing.dec.skipif(not has_command_line_tools(),
                                     'Requires MNE command line tools')
 
 
 
requires_fs_or_nibabel = np.testing.dec.skipif(not has_nibabel() and
                                               not has_freesurfer(),
                                               'Requires nibabel or '
    else:
        extra = ''
    return np.testing.dec.skipif(not has_nibabel(vox2ras_tkr),
                                 'Requires nibabel%s' % extra)
 
requires_freesurfer = np.testing.dec.skipif(not has_freesurfer(),
    except ImportError:
        skip = True
    return np.testing.dec.skipif(skip, skip_str)
 
 

src/m/n/mne-python-HEAD/mne/utils.py   mne-python(Download)
 
 
requires_mne = np.testing.dec.skipif(not has_command_line_tools(),
                                     'Requires MNE command line tools')
 
 
 
requires_fs_or_nibabel = np.testing.dec.skipif(not has_nibabel() and
                                               not has_freesurfer(),
                                               'Requires nibabel or '
    else:
        extra = ''
    return np.testing.dec.skipif(not has_nibabel(vox2ras_tkr),
                                 'Requires nibabel%s' % extra)
 
requires_freesurfer = np.testing.dec.skipif(not has_freesurfer(),
    except ImportError:
        skip = True
    return np.testing.dec.skipif(skip, skip_str)
 
 

src/m/n/mne-0.7.1/mne/datasets/spm_face/spm_data.py   mne(Download)
skip_spm = get_config('MNE_SKIP_SPM_DATASET_TESTS', 'false') == 'true'
has_spm_data = has_dataset('spm')
requires_spm_data = np.testing.dec.skipif(not has_spm_data
                                          or skip_spm,
                                          'Requires spm dataset')

src/m/n/mne-0.7.1/mne/cuda.py   mne(Download)
cuda_halve_value_complex128 = None
cuda_real_value_complex128 = None
requires_cuda = np.testing.dec.skipif(True, 'CUDA not initialized')
 
 
                        logger.info('Enabling CUDA with %s available memory'
                                    % sizeof_fmt(mem_get_info()[0]))
    requires_cuda = np.testing.dec.skipif(not cuda_capable,
                                          'CUDA not initialized')
 

src/m/n/mne-python-HEAD/mne/datasets/spm_face/spm_data.py   mne-python(Download)
    return skip
 
requires_spm_data = np.testing.dec.skipif(_skip_spm_sample_data,
                                          'Requires spm dataset')
 

src/m/n/mne-python-HEAD/mne/cuda.py   mne-python(Download)
cuda_halve_value_complex128 = None
cuda_real_value_complex128 = None
requires_cuda = np.testing.dec.skipif(True, 'CUDA not initialized')
 
 
                        logger.info('Enabling CUDA with %s available memory'
                                    % sizeof_fmt(mem_get_info()[0]))
    requires_cuda = np.testing.dec.skipif(not cuda_capable,
                                          'CUDA not initialized')
 

src/d/i/dipy-0.7.1/dipy/reconst/benchmarks/bench_vec_val_sum.py   dipy(Download)
    np.einsum
except AttributeError:
    with_einsum = dec.skipif(True, "Need einsum for benchmark")
else:
    with_einsum = lambda f : f

src/m/i/MissionPlanner-HEAD/Lib/site-packages/scipy/special/tests/test_mpmath.py   MissionPlanner(Download)
def mpmath_check(min_ver):
    if mpmath is None:
        return dec.skipif(True, "mpmath library is not present")
 
    def try_int(v):
        return map(try_int, re.split('[^0-9]', v))
 
    return dec.skipif(get_version(min_ver) > get_version(mpmath.__version__),
                      "mpmath %s required" % min_ver)
 

  1 | 2 | 3 | 4  Next