Skip to content

Commit 01dd944

Browse files
author
Corentin
committed
fix bug label image
1 parent 10fe15f commit 01dd944

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

myoquant/HE_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ def paint_histo_img(histo_img, cellpose_df, prediction_df):
157157
paint_img = np.zeros((histo_img.shape[0], histo_img.shape[1]), dtype=np.uint16)
158158
for index in range(len(cellpose_df)):
159159
single_cell_mask = cellpose_df.iloc[index, 9].copy()
160-
if prediction_df.iloc[index, 1] == 0:
160+
if prediction_df["N° Nuc Intern"].iloc[index] == 0:
161161
paint_img[
162162
cellpose_df.iloc[index, 5] : cellpose_df.iloc[index, 7],
163163
cellpose_df.iloc[index, 6] : cellpose_df.iloc[index, 8],
164164
][single_cell_mask] = 1
165-
elif prediction_df.iloc[index, 1] > 0:
165+
elif prediction_df["N° Nuc Intern"].iloc[index] > 0:
166166
paint_img[
167167
cellpose_df.iloc[index, 5] : cellpose_df.iloc[index, 7],
168168
cellpose_df.iloc[index, 6] : cellpose_df.iloc[index, 8],

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "myoquant"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
description = "MyoQuant🔬: a tool to automatically quantify pathological features in muscle fiber histology images."
55
authors = ["Corentin Meyer <[email protected]>"]
66
maintainers = ["Corentin Meyer <[email protected]>"]

0 commit comments

Comments
 (0)