Closed WardBrian closed 3 weeks ago
I wonder if creating an additional copy of an in-memory JSON data file could further tax the scarce memory resource in the case of models with very large data, but the increased utility is probably worth the risk in this case. Especially as the copy doesn't have to exist until after the sampler's been run.
If this does become a problem, I think we could work around it by using FS.createLazyFile
, but this would require extra machinery to 'host' the file at a URL, so I didn't tackle it here. If you know a good way, we definitely could do that sooner rather than later
To be clear--yeah, I don't have an answer here, or even evidence that it's going to be a problem; I suspect any such situation is either massively over-provisioned with data or is going to run into problems while still in the sampler phase, so realistically I'm not worried about it.
We can solve it if it's ever an issue.
Closes #238.
latestRun
objectfiles
argument to the pyodide and webr mechanisms to allow us to populate arbitrary filesThis sets the SIR analysis.R example go from
to
This will be even nicer if the data has some randomization to it, in which case re-running the same code in analysis would not recover the same data, but this would allow it to