Skip to content

Commit 3429b62

Browse files
committed
Updated
1 parent 49a3921 commit 3429b62

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/DAB_Analysis_Functions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,17 @@ def chop_and_analyse_svs(
247247
yc = pl.Series(
248248
"centroid-y", table_asyn_temp["centroid-1"].to_numpy() + ypos
249249
)
250-
table_asyn_temp = table_asyn_temp.replace_column(0, xc)
251-
table_asyn_temp = table_asyn_temp.replace_column(1, yc)
250+
table_asyn_temp = table_asyn_temp.replace_column(1, xc)
251+
table_asyn_temp = table_asyn_temp.replace_column(2, yc)
252252

253253
xnc = pl.Series(
254254
"centroid-x", table_nuclei_temp["centroid-0"].to_numpy() + xpos
255255
)
256256
ync = pl.Series(
257257
"centroid-y", table_nuclei_temp["centroid-1"].to_numpy() + ypos
258258
)
259-
table_nuclei_temp = table_nuclei_temp.replace_column(0, xnc)
260-
table_nuclei_temp = table_nuclei_temp.replace_column(1, ync)
259+
table_nuclei_temp = table_nuclei_temp.replace_column(1, xnc)
260+
table_nuclei_temp = table_nuclei_temp.replace_column(2, ync)
261261

262262
if save_figs == True:
263263
import matplotlib
@@ -579,7 +579,7 @@ def correct_props_pixel_size(self, props, pixel_size=0.2528):
579579

580580
props["area"] = np.multiply(props["area"], np.square(pixel_size))
581581
props["centroid-0"] = np.multiply(props["centroid-0"], pixel_size)
582-
props["centroid-0"] = np.multiply(props["centroid-0"], pixel_size)
582+
props["centroid-1"] = np.multiply(props["centroid-1"], pixel_size)
583583
props["axis_major_length"] = np.multiply(props["axis_major_length"], pixel_size)
584584
props["axis_minor_length"] = np.multiply(props["axis_minor_length"], pixel_size)
585585
return props

0 commit comments

Comments
 (0)