gustaf.helpers.data.TrackedArray#
- class gustaf.helpers.data.TrackedArray[source]#
Bases:
ndarray
Taken from nice implementations of trimesh (see LICENSE.txt). https://github.com/mikedh/trimesh/blob/main/trimesh/caching.py. Minor adaption, since we don’t have hashing functionalities.
All the inplace functions will set modified flag and if some operations has potential to cause un-trackable behavior, writeable flags will be set to False.
Note, if you really really want, it is possible to change the tracked array without setting modified flag.
Methods
TrackedArray.copy
(*args, **kwargs)copy gives np.ndarray.
TrackedArray.view
(*args, **kwargs)Set writeable flags to False for the view.
Attributes