Skip to content

Commit be10edc

Browse files
authored
Merge pull request #713 from ANTsX/SuppLabelWarning
DISP: Address pd warning.
2 parents 280ff64 + f59ba03 commit be10edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ants/label/label_overlap_measures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ def label_overlap_measures(source_image, target_image):
4040
libfn = get_lib_fn("labelOverlapMeasures%iD" % source_image_int.dimension)
4141
df = libfn(source_image_int.pointer, target_image_int.pointer)
4242
df = pd.DataFrame(df)
43-
df.Label[0] = "All"
44-
43+
with pd.option_context('mode.chained_assignment', None):
44+
df.Label[0] = "All"
4545
return df

0 commit comments

Comments
 (0)