CIL
CIL copied to clipboard
DataContainer should probably have a save method
Description
Issue I came across trying to make callbacks which can store calculation state. Best situation would be that DataContainer would have a (possibly abstract) save method which would save the data using an appropriate format. My current workaround is to save the .array using numpy's own saving tools, but that might be very silly with some datasets; could still be a sensible default though.
Environment
23.1.1.dev350+g5d569dc0 g5d569dc0 3.12.7 | packaged by conda-forge | (main, Oct 4 2024, 16:05:46) [GCC 13.3.0] linux
Thanks @manchester-jhellier - This is something we have talked about a lot recently. Our sister package SIRF, does indeed have a save method for data containers. Definitely something we need to discuss again