Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/iris/pandas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2013 - 2015, Met Office
# (C) British Crown Copyright 2013 - 2016, Met Office
#
# This file is part of Iris.
#
Expand Down Expand Up @@ -129,6 +129,9 @@ def _assert_shared(np_obj, pandas_obj):
base = pandas_obj.base
else:
base = pandas_obj[0].base

if pandas_obj.values is np_obj:
return

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a comment around this change, explaining why the change is needed and referencing pandas versions as appropriate

I would like to see just enough about the pandas implementation change to be able to understand the change if I came back to it

# Chase the stack of NumPy `base` references back to see if any of
# them are our original array.
while base is not None:
Expand Down