Sounds like an interesting problem! I suspect that the performance could be better if you calculate the Green's function or the scattering matrix of the system at different energies once, and couple to the spin in a separate stage. This is probably more manual work though.
Keep in touch about how it goes.
On Sun, Sep 27, 2015 at 10:45 PM, Baris Pekerten firstname.lastname@example.org wrote:
Thank you very much. :) I'll try this tomorrow and post the results.. It's definitely neater than mymod = __import__('make_sys_file') and getattrib(mymod, relevant_make_sys_func) with make_sys_file.py containing 100 different make_sys functions.
The application is about an interaction with a big external spin of value J, and the number of lattices is essentially 2J+1. I want to be able to see the effect of J vs. transmission etc.
On Sun, Sep 27, 2015 at 11:11 PM, Joseph Weston email@example.com wrote:
Also, I've got to ask: why do you want to do this? I'm struggling to think of an application where you would have ~100 separate channels like that that are all separately measureable. This is probably due to a lack of imagination on my part ;)