demisjohn / pyFIMM

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

Waveguide.update_node() - rebuild node with new params #65

Closed demisjohn closed 8 years ago

demisjohn commented 8 years ago

Same as Waveguide.buildNode(), but without creating new nodes - only updates node values (including molab params).

This relies on #64 , so that we can use get_buildnode_str( new_nodes=False ).

demisjohn commented 8 years ago

I think I already added a Waveguide.set_wavelength() function - if so, this update_node() function would be very useful. Currently I had functions like set_wavelength() update the python internal variable AND the fimmwave setting. with update_node, you could instead only update only the python internal, and update_node would push those updates to the FimmWave node.

estanton22 commented 8 years ago

Functionality for updateNode is now incorporated into buildNode within the Waveguide class.

4db592d489b3498f2259f819dd45e0a806a1d26a