ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 02 Mar 2011 08:40:50 -0600how to organize multifile projecthttp://ask.sagemath.org/question/7980/how-to-organize-multifile-project/I am working on a project to do some computations for a specialized theory. Currently, we have several files that define different objects that have various dependencies on each other. Currently, I have a file named "attachall.sage" that looks like
attach "poly.sage"
attach "util2.sage"
attach "quasihomogeneous.sage"
attach "FJRW.sage"
attach "algebra.sage"
etc. Then when I want to do some computations, I do
sage: load attachall.sage
sage: #do stuff with the objects
It works fine, I guess, but doesn't seem particularly clean-- it seems like there should be a preferred way to do this. Should I use python's import? But then I would have to re-preparse every time I changed the source, and have potentially annoying bugs if someone forgot to re-preparse after changing a file. Or should I look into making a spkg? I don't really know a lot about that and I'd like to keep it simple.
Eventually we'd like to be able to share this code with other groups.
Does anyone have any thoughts?paragonWed, 02 Mar 2011 08:40:50 -0600http://ask.sagemath.org/question/7980/