Closed Tobias-Fischer closed 10 years ago
I would like to see this PR updated with the new decorator stuff - even if there still some kinks to work out. At least we can then all discuss a particular version of the code together!
Ok great!
If it works, I'm happy to merge now and work out the remaining details later.
Now it is merged, Philipp and I are just going to make changes we think are sensible on master. Do object if there is something that won't work properly (we will test the example gcal file).
Ok, good. I've added my proposed support for moving global_params handling out of the .ty file, and it seems to work fine and so I've pushed it. Please make sure to pull before making your own edits, and to check whether you see any problems with my latest additions.
BTW, we need a new name for gcal_usingsubmodel.ty or gcal.ty. I'd like to keep gcal.ty around as an example of how to specify a model independently of all other models, illustrating the basic procedure but not used much in practice. Maybe change gcal.ty to gcal_or.ty (since it's hard-coded to work only for orientation), and then change gcal_usingsubmodel.ty into gcal.ty? If so, maybe best to hold off a bit from this change, until submodels have settled down a bit, before we use them for everything ever.
I've made a whole load of changes. I'll try to reopen this pull request so we can discuss the submodels machinery here - not because I am unhappy with the merge!
Edit 1: Apparently you cannot re-open a pull request like this. I just hope you will notice any new comments I post here.
Edit 2: I think it is more appropriate to use GittHub Issues to discuss this system now that it has been merged so I have created a new issue (#573) where we can discuss this.
This pull request introduces a new machinery to define models. They can be summarized as follows:
Submodels lack of more documentation, which will be added soon (see TODO's).
This pull request depends on https://github.com/ioam/topographica/pull/570, https://github.com/ioam/imagen/pull/30 and https://github.com/ioam/featuremapper/pull/10