Skip to content

Commit 0c93843

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6b0df4b commit 0c93843

File tree

5 files changed

+22
-28
lines changed

5 files changed

+22
-28
lines changed

notebooks/demo_biological_data.ipynb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66
"metadata": {},
77
"outputs": [],
88
"source": [
9-
"import glob\n",
10-
"import pandas as pd\n",
11-
"from pathlib import Path\n",
12-
"import numpy as np\n",
13-
"from skimage import io, measure\n",
149
"\n",
1510
"import napari\n",
16-
"import napari_clusters_plotter as ncp\n",
17-
"import napari_segment_blobs_and_things_with_membranes as nsbatwm"
11+
"\n",
12+
"import napari_clusters_plotter as ncp"
1813
]
1914
},
2015
{

notebooks/demo_cluster_export.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
"outputs": [],
99
"source": [
1010
"import napari\n",
11-
"from napari.layers import Points\n",
1211
"import numpy as np\n",
13-
"from napari_clusters_plotter._new_plotter_widget import _export_cluster_to_layer, PlotterWidget"
12+
"from napari.layers import Points\n",
13+
"\n",
14+
"from napari_clusters_plotter._new_plotter_widget import (\n",
15+
" PlotterWidget,\n",
16+
")"
1417
]
1518
},
1619
{

notebooks/demo_new_plotter.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"outputs": [],
88
"source": [
99
"import napari\n",
10-
"from napari_clusters_plotter._new_plotter_widget import PlotterWidget\n",
11-
"\n",
12-
"from skimage import morphology, measure, data\n",
1310
"import numpy as np\n",
14-
"import pandas as pd"
11+
"import pandas as pd\n",
12+
"from skimage import data, measure\n",
13+
"\n",
14+
"from napari_clusters_plotter._new_plotter_widget import PlotterWidget"
1515
]
1616
},
1717
{

notebooks/demo_new_reduction.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
"metadata": {},
77
"outputs": [],
88
"source": [
9-
"from napari_clusters_plotter._new_plotter_widget import PlotterWidget\n",
10-
"from napari_clusters_plotter._dim_reduction_and_clustering import DimensionalityReductionWidget, ClusteringWidget\n",
11-
"from napari_clusters_plotter._algorithms import reduce_pca\n",
129
"import napari\n",
1310
"import numpy as np\n",
11+
"import pandas as pd\n",
1412
"from napari.layers import Points\n",
1513
"\n",
16-
"from skimage import data, measure\n",
17-
"\n",
18-
"import pandas as pd"
14+
"from napari_clusters_plotter._dim_reduction_and_clustering import (\n",
15+
" ClusteringWidget,\n",
16+
" DimensionalityReductionWidget,\n",
17+
")\n",
18+
"from napari_clusters_plotter._new_plotter_widget import PlotterWidget"
1919
]
2020
},
2121
{

notebooks/demo_shapes_clustering.ipynb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
"metadata": {},
77
"outputs": [],
88
"source": [
9-
"import glob\n",
10-
"import pandas as pd\n",
11-
"from pathlib import Path\n",
9+
"import napari\n",
1210
"import numpy as np\n",
13-
"from skimage import io, measure\n",
11+
"import pandas as pd\n",
1412
"\n",
15-
"import napari\n",
16-
"import napari_clusters_plotter as ncp\n",
17-
"import napari_segment_blobs_and_things_with_membranes as nsbatwm"
13+
"import napari_clusters_plotter as ncp"
1814
]
1915
},
2016
{
@@ -49,8 +45,8 @@
4945
"source": [
5046
"# random centers\n",
5147
"box_centers = np.random.random((20, 2)) * 1000\n",
52-
"box_widths = np.random.random((20)) * 100\n",
53-
"box_heights = np.random.random((20)) * 100\n",
48+
"box_widths = np.random.random(20) * 100\n",
49+
"box_heights = np.random.random(20) * 100\n",
5450
"features = pd.DataFrame({'box_widths': box_widths, 'box_heights': box_heights})\n",
5551
"features['area'] = features['box_widths'] * features['box_heights']\n",
5652
"\n",

0 commit comments

Comments
 (0)