--
You received this message because you are subscribed to the Google Groups "vispy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vispy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
> I've modified the galaxy.py example to read in from an n-body simulations output file and it works great!How big is the data file? Would there be a way to create an example based on it? We would like that very much :)
You need to make a screenshot using gloo._screenshot().Yes, we actually do something similar for generating the online galery: https://github.com/vispy/vispy/blob/master/make/make.py#L203
> I'd like to save the image automatically to a file in the script.
> I've modified the galaxy.py example to read in from an n-body simulations output file and it works great!How big is the data file? Would there be a way to create an example based on it? We would like that very much :)
It's a 25MB text file I'm reading in and right now I've totally hacked the galaxy.py example, without really grokking everything that's going on in there. :) I'm happy to send you a slightly cleaned up version code and datafile. If you'd like to post it as an example that's fine with me! I've attached the image of the n-body simulation I made with vispy. Looks pretty good to me!
What does everyone think about adding a new repository for large demos? I'd like to see the galaxy sim, Gael's molecular viewer (perhaps he'll let us post that wicked micelle simulation?), MRI data, electrophys recordings, etc.
On Sun, Feb 23, 2014 at 3:25 PM, Matthew Bellis <matthew...@gmail.com> wrote:
> I've modified the galaxy.py example to read in from an n-body simulations output file and it works great!How big is the data file? Would there be a way to create an example based on it? We would like that very much :)
It's a 25MB text file I'm reading in and right now I've totally hacked the galaxy.py example, without really grokking everything that's going on in there. :) I'm happy to send you a slightly cleaned up version code and datafile. If you'd like to post it as an example that's fine with me! I've attached the image of the n-body simulation I made with vispy. Looks pretty good to me!
--
> How would I get the script to exit, once the canvas is drawn and the image saved? I'm afraid I don't actually know what is happening in app.run().
app.quit() should do the trick.
What does everyone think about adding a new repository for large demos? I'd like to see the galaxy sim, Gael's molecular viewer (perhaps he'll let us post that wicked micelle simulation?), MRI data, electrophys recordings, etc.
What does everyone think about adding a new repository for large demos? I'd like to see the galaxy sim, Gael's molecular viewer (perhaps he'll let us post that wicked micelle simulation?), MRI data, electrophys recordings, etc.If this moves forward, I'm happy to upload the data and the sample nbody viewer I'm working on!
app.quit() should do the trick.No, that doesn't seem to work. Again, if I just return to the galaxy.py example, __main__ looks like this:
--
You received this message because you are subscribed to a topic in the Google Groups "vispy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vispy/vgynqRasCtE/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to vispy+un...@googlegroups.com.