Skip to content

Commit

Permalink
BUG: Python str objects don't have astype()
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa authored Nov 30, 2024
1 parent e114676 commit 3852f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ants/label/label_overlap_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3852f31

Please sign in to comment.