diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b17d1dbd..3e6fa4bc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,4 @@ repos: rev: 22.3.0 hooks: - id: black - language_version: python3.8 + language_version: python diff --git a/afqinsight/cnn.py b/afqinsight/cnn.py index c32207af..16f03fd3 100644 --- a/afqinsight/cnn.py +++ b/afqinsight/cnn.py @@ -141,7 +141,6 @@ def __init__( project_name=None, **tuner_kwargs, ): - self.tuner_type = tuner_type self.layers = layers self.input_shape = input_shape diff --git a/afqinsight/plot.py b/afqinsight/plot.py index aa746cde..37ed2419 100644 --- a/afqinsight/plot.py +++ b/afqinsight/plot.py @@ -263,7 +263,7 @@ def plot_tract_profiles( y=metric, hue=hue, data=df_stat, - ci=ci, + errorbar=("ci", 95.0), palette=palette, ax=ax, linewidth=1.0, diff --git a/afqinsight/tests/test_bagging.py b/afqinsight/tests/test_bagging.py index a89fdd7a..4612e1db 100644 --- a/afqinsight/tests/test_bagging.py +++ b/afqinsight/tests/test_bagging.py @@ -213,7 +213,6 @@ def fit(self, X, y): X_train_sparse = sparse_format(X_train) X_test_sparse = sparse_format(X_test) for params in parameter_sets: - # Trained on sparse format sparse_classifier = SerialBaggingRegressor( base_estimator=CustomSVR(), random_state=1, **params diff --git a/afqinsight/tests/test_cnn.py b/afqinsight/tests/test_cnn.py index 10898ffd..8899d912 100644 --- a/afqinsight/tests/test_cnn.py +++ b/afqinsight/tests/test_cnn.py @@ -150,7 +150,6 @@ def test_random_cnn(): def test_fail_cnn(): - with pytest.raises(ValueError): # passing in wrong shape of X (not 2d): model = CNN(100, 6, 5, 64) diff --git a/setup.cfg b/setup.cfg index feca5487..c3c31965 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,7 +33,7 @@ setup_requires = python_requires = >=3.7 install_requires = dipy>=1.0.0 - groupyr>=0.2.7 + groupyr>=0.3.2 matplotlib numpy pandas>=1.1.0