Skip to content

Commit

Permalink
Run tox
Browse files Browse the repository at this point in the history
  • Loading branch information
logstar committed Mar 30, 2018
1 parent 2737c22 commit 333c928
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions scedar.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"name": "PyTest",
"working_dir": "${project_path}",
"selector": "source.python",
"shell_cmd": "/Users/zhangy4/miniconda3/envs/py36/bin/python setup.py test --addopts \"--mpl --mpl-baseline-path=tests/baseline_images --cov=scedar --ignore=tests/test_cluster/test_mirac_large_data.py\"",
"shell_cmd": "/Users/zhangy4/miniconda3/envs/py36/bin/python setup.py test --addopts \"--mpl --mpl-baseline-path=tests/baseline_images --color=yes --cov-config .coveragerc --cov-branch --cov=scedar --ignore=tests/test_cluster/test_mirac_large_data.py\"",
"env": {
"TERM": "xterm-256color",
"CLICOLOR_FORCE": "1",
Expand All @@ -24,12 +24,12 @@

{
"name": "Generate Baseline Image",
"shell_cmd": "/Users/zhangy4/miniconda3/envs/py36/bin/python setup.py test --addopts \"--mpl-generate-path=tests/baseline_images --cov=scedar --ignore=tests/test_cluster/test_mirac_large_data.py\"",
"shell_cmd": "/Users/zhangy4/miniconda3/envs/py36/bin/python setup.py test --addopts \"--mpl-generate-path=tests/baseline_images --color=yes --cov-config .coveragerc --cov-branch --cov=scedar --ignore=tests/test_cluster/test_mirac_large_data.py\"",
},

{
"name": "Test All",
"shell_cmd": "/Users/zhangy4/miniconda3/envs/py36/bin/python setup.py test --addopts \"--mpl --mpl-baseline-path=tests/baseline_images --cov=scedar\"",
"shell_cmd": "/Users/zhangy4/miniconda3/envs/py36/bin/python setup.py test --addopts \"--mpl --mpl-baseline-path=tests/baseline_images --color=yes --cov-config .coveragerc --cov-branch --cov=scedar\"",
},

{
Expand Down
4 changes: 2 additions & 2 deletions scedar/eda/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
__all__ = ["sfm", "sdm", "slcs", "plot", "mtype", "stats"]

from .plot import (cluster_scatter, heatmap, regression_scatter,
hist_dens_plot, networkx_graph)
from .slcs import SingleLabelClassifiedSamples
from .sfm import SampleFeatureMatrix
from .sdm import SampleDistanceMatrix, tsne
from .plot import (cluster_scatter, heatmap, regression_scatter,
hist_dens_plot, networkx_graph)
from . import mtype
from . import stats
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
test=pytest

[tool:pytest]
addopts = --verbose --color=yes --cov-config .coveragerc --cov-branch

addopts = --verbose
4 changes: 1 addition & 3 deletions tests/test_cluster/test_mdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def test_kde_bw(self):
zikm3 = cluster.ZeroIdcGKdeMdl(self.x, 1)
xnz_std = zikm.x_nonzero.std(ddof=1)
np.testing.assert_allclose(1, zikm3.bandwidth / xnz_std)
np.testing.assert_raises(AssertionError,
np.testing.assert_allclose,
zikm2.bandwidth, zikm3.bandwidth)
assert not np.allclose(zikm2.bandwidth, zikm3.bandwidth)

def test_wrong_x_shape(self):
with pytest.raises(ValueError) as excinfo:
Expand Down

0 comments on commit 333c928

Please sign in to comment.