pyuvdata
pyuvdata copied to clipboard
Estimate memory footprint for UVBased objects
It would be nice to have a property (probably on UVBase) that would iterate through all the parameters on an object to estimate its memory footprint. This should be trivial for anything that is a numpy array (or subclass) or scalar. Other python built-ins like list and dict get a bit more complicated. We could follow something like is in this stackoverflow post if we wanted to include those too .