From 3852f31ef133ceaf43d792f86eadf3ae4bc1dbc3 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Sat, 30 Nov 2024 17:55:51 -0500 Subject: [PATCH] BUG: Python str objects don't have astype() --- ants/label/label_overlap_measures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants/label/label_overlap_measures.py b/ants/label/label_overlap_measures.py index 4dbd9249..815c4fc0 100644 --- a/ants/label/label_overlap_measures.py +++ b/ants/label/label_overlap_measures.py @@ -40,5 +40,5 @@ def label_overlap_measures(source_image, target_image): libfn = get_lib_fn("labelOverlapMeasures%iD" % source_image_int.dimension) df = libfn(source_image_int.pointer, target_image_int.pointer) df = pd.DataFrame(df) - df.loc[0, 'Label'] = 'All'.astype(object) + df.loc[0, 'Label'] = 'All' return df