demisjohn / pyFIMM

Python Interface to PhotonDesign's FimmWave/FimmProp software.
15 stars 4 forks source link

Use `self.Exec()` everywhere #56

Open demisjohn opened 8 years ago

demisjohn commented 8 years ago

Change ALL object methods to use self.nodestring instead of "app.subnodes[%i].subnodes[%i] " etc. etc. Need to change Waveguide.py, Circ.py, Device.py - maybe others? Check Tapers.py

demisjohn commented 8 years ago

New technique: Node has an Exec() function as of 08de9eed9928a0b35add2adc50d2baf85a0bd687, which automatically prepends the nodestring onto the command, and also runs strip_text() & strip_array() on the results. Should instead migrate all Execs over to that, unless they are Global execs (ie. not operating on a node, but just on the FimmWave global vars, such as default_lambda etc.).