Skip to content

Commit

Permalink
DISP: Address pd warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Oct 3, 2024
1 parent 504a43a commit f59ba03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ants/label/label_overlap_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ 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.Label[0] = "All"

with pd.option_context('mode.chained_assignment', None):
df.Label[0] = "All"
return df

0 comments on commit f59ba03

Please sign in to comment.