Skip to content

Commit

Permalink
Merge pull request #746 from ANTsX/label_geometry_type_errors
Browse files Browse the repository at this point in the history
BUG: Python str objects don't have astype()
  • Loading branch information
cookpa authored Nov 30, 2024
2 parents e114676 + 3852f31 commit e72f599
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 e72f599

Please sign in to comment.