pynbody.util.set_array_if_not_same

pynbody.util.set_array_if_not_same#

pynbody.util.set_array_if_not_same(a_store, a_in, index=None)[source]#

This routine checks whether a_store and a_in ultimately point to the same buffer; if not, the contents of a_in are copied into a_store.