carstenbauer / MonteCarlo.jl

Classical and quantum Monte Carlo simulations in Julia
https://carstenbauer.github.io/MonteCarlo.jl/dev/
Other
185 stars 18 forks source link

Add compat model for unavailable custom models #138

Closed ffreyer closed 2 years ago

ffreyer commented 2 years ago

If the user has defined some model MyModel and simulated it, it currently needs to exist in order to load that data. For the sake of convenience it would be nice to be able to load the simulation without all that model code being available. We could to this by creating a dummy model on failed load. For safety this should include all the data from the save file (so that a save will create the exact same savefile) but refuse to run.