demisjohn / pyFIMM

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

Project: set_variables Node #71

Closed demisjohn closed 8 years ago

demisjohn commented 8 years ago

To address #70

Allow a Project object to have a 'variables' node, so any device/wg in that project can locate variables in the project. Something like Project.set_variable_node( 'Variables 1' ) where 'Variables 1' is the name of the Fimmwave Node in the fwProject.

requires a get/set_variable() function as well. So after the Variables Node is set, then can do: br = MyPrj.get_variable( 'BendRadius' ) or, relevant to #70 , can internally do within a Device object: length = self.parent.get_variable( 'VarName' ) for resolving variables easily.

demisjohn commented 8 years ago

implemented in 91a0bd0febe26c41744d6591d68974ae8cadc393