pmelchior / scarlet2

Scarlet, all new and shiny
MIT License
15 stars 4 forks source link

HDF5 output save #83

Closed SampsonML closed 1 month ago

SampsonML commented 1 month ago

This adds a routine for the saving and loading of a full Scarlet2 scene saves via pickling to a binary, and storing the binary as as HDF5 group attribute. This has been tested and runs returning the same Scene object.

model_to_h5(filename, scene, ID, path, overwrite) will save the scene object model_from_h5(filename, ID, path) will load the object

SampsonML commented 1 month ago

Changes made