I see.
Out-of-scope here, but what a strange method.
As far as I can tell there's no use for it at all
and the code should be using *cube.copy(data=new_data)*.