Closed OnnoEbbens closed 1 year ago
When you create a copy of an ObsCollection using deep=True the observations in both ObsCollection still point to the same object in memory. In other words when you execute the code below it will print the same id twice.
ObsCollection
deep=True
oc_copy = oc.copy(deep=True) print(id(oc.obs.values[0])) print(id(oc_copy.obs.values[0]))
When you create a copy of an
ObsCollection
usingdeep=True
the observations in both ObsCollection still point to the same object in memory. In other words when you execute the code below it will print the same id twice.