briandconnelly / seeds

Stochastic Cellular Artificial Life Simulator
Other
20 stars 4 forks source link

Remove Snapshot stuff from base system #34

Closed briandconnelly closed 13 years ago

briandconnelly commented 13 years ago

Make all of this a plugin. Can remove code from World.

briandconnelly commented 13 years ago

Will also need to be removed as a command line argument from runseeds.py (unless that goes in and adds the action and calls the appropriate function, which is do-able).

zamanlh commented 13 years ago

It would neat to have plugins able to "register" command line args, is that possible with the new optparse stuffs?

briandconnelly commented 13 years ago

Waiting to switch to optparse, since it's a python 2.7 and 3.0 feature, and a lot of people are still in 2.6.

I think it'd be tricky, as well, because plugins are loaded from the directories specified in the command line or config file, so it'd have to parse the command line, load the plugins, and then parse the command line again.

Aside from special cases like writing snapshots, it seems to me that the number of situations where a new command line argument makes much more sense than using --param is pretty small. In those cases, maybe it makes more sense to write a new program to run and manage the experiment. My intention is for that to be pretty easy.

briandconnelly commented 13 years ago

Snapshots have been removed. Will push changes shortly.