Closed as not planned
Description
For teaching purposes, and possibly for other reasons too, I think it would be really useful to be able to load a tree sequence from a URL. IMO the nicest way to make this easy for a user would be to have a url
argument to tskit.load
:
tskit.load(url="https://tskit.dev/tutorials/data/basics.trees")
I would hope that this would mainly be used for small tree sequences, although I suppose it could be an easy way for someone to load up larger ones e.g. from zenodo - depends how long that would take I guess.
I suspect implementing this using the urllib.request
library would be quite easy, although I don't know how we would unit test it - probably mock the urllib.request.urlopen
function when testing, or something.