demisjohn / pyFIMM

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

project.Import_waveguide() from another Project #41

Open demisjohn opened 8 years ago

demisjohn commented 8 years ago

Open WG from File, create new object by copy/pasting the dev. into project, and populate the WG params.

demisjohn commented 8 years ago

Needs similar solution as import_device(); see commits on #2 : "open Device from File" for the code to implement this.

User can either do WG = pyfimm.import_waveguide( proj=imported_proj, ... ) to make a pyfimm object pointing to the loaded WG, or copy the WG into their own project via WG = MyProj.import_waveguide( proj=imported_proj, ... ).

Very similar to #66 the Circ version of this issue.