Skip to content

Conversation

@hdyson
Copy link
Contributor

@hdyson hdyson commented Oct 13, 2017

Trying to convert an iris cube to a pandas dataframe currently fails if the copy=False argument is used and the cube data is a view. The data is correctly shared between the cube and the dataframe. However, the check that the data is shared fails to account for the cube data being a view and throws an error. First commit here demonstrates the failure (error is thrown when creating the dataframe), and the second is the fix.

I've not investigated why loading the data that triggered this error resulted in a cubelist where the individual cubes had a view for the data rather than the base array.

@pelson pelson added the Blocked: CLA needed See https://scitools.org.uk. Submit the form at: https://scitools.org.uk/cla/v4/form label Oct 13, 2017
@lbdreyer lbdreyer closed this Oct 16, 2017
@lbdreyer lbdreyer reopened this Oct 16, 2017
@pelson pelson removed the Blocked: CLA needed See https://scitools.org.uk. Submit the form at: https://scitools.org.uk/cla/v4/form label Oct 16, 2017
@pelson
Copy link
Member

pelson commented Oct 16, 2017

LGTM. Thanks @hdyson.

@pelson pelson merged commit 94e2b15 into SciTools:master Oct 16, 2017
@hdyson hdyson deleted the df_shared_data_fix branch October 16, 2017 13:35
@hdyson
Copy link
Contributor Author

hdyson commented Oct 16, 2017

Thanks @pelson and @lbdreyer , I appreciate you both turning this around so promptly.

@QuLogic QuLogic added this to the v2.0 milestone Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants