Skip to content

Commit

Permalink
Merge pull request #713 from ANTsX/SuppLabelWarning
Browse files Browse the repository at this point in the history
DISP:  Address pd warning.
  • Loading branch information
ntustison authored Oct 4, 2024
2 parents 280ff64 + f59ba03 commit be10edc
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 be10edc

Please sign in to comment.