CIL icon indicating copy to clipboard operation
CIL copied to clipboard

DataContainer should probably have a save method

Open manchester-jhellier opened this issue 1 year ago • 1 comments

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

manchester-jhellier avatar Nov 11 '24 23:11 manchester-jhellier

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

MargaretDuff avatar Nov 12 '24 17:11 MargaretDuff