demisjohn / pyfimm Goto Github PK
View Code? Open in Web Editor NEWPython Interface to PhotonDesign's FimmWave/FimmProp software.
Python Interface to PhotonDesign's FimmWave/FimmProp software.
Open WG from File, create new object by copy/pasting the dev. into project, and populate the WG params.
Import from File - reference path inside a file, import into new object. ImportWG, ImportCirc, ImportDev()
__pyfimm.py line 424: Remove all instances of .strip()[:-2] and use if xyz.endswith() // xyz.strip(etc)
- Circ - support Gaussian & Spline index profiles
Instead of using Node.__checkNodeName()
Why does Nmodes affect symmetry of Cavity e-field? Is EigVect captured incorrectly?
refractive_index=True
nevals
)Open WG from File, create new object by copy/pasting the WG into project
From Vincent Brulis: Yes you just need to sum up the field amplitudes. If you want to normalise your vector you simply need to normalise the field coefficients; the normalised vector corresponding to [1.0 + 0j , 0.5 + 0.5j , 0 , 0] is [1.0/sqrt(1.5) + 0j , 0.5/sqrt(1.5) + 0.5j/sqrt(1.5) , 0 , 0]
Cavity.Calc
refine=True
option, to automatically minimize image(EigV) closest to zero, within some tolerance (and add the additional calc'd wavelengths to the wavelengths attribute)Open Device from File, create new object by copy/pasting the dev. into project
-- __pyfimm.Node - should check the correct subnode level for name conflicts. All nodes are now in root-level of the project, so checking sublevels is unnecessary.
Make sure all checks of NodeName use one function, pyfimm.checkNodeName().
.
- may be done alreadyDevice take other Device obj as element
(most recent call last):
File "<stdin>", line 1, in <module>
File "pyfimm\__pyfimm.py", line 424, in buildNode
SNnames.append( fimm.Exec(r"app.subnodes["+str(i+1)+"].nodename").strip()[:-2] )
AttributeError: 'float' object has no attribute 'strip'
typecast fimmwave output to string if a name is expected? Should have done:
SNnames.append( str( fimm.Exec(r"app.subnodes["+str(i+1)+"].nodename").strip()[:-2] ) )
From Vincent Brulis:
We have upgraded the command line interface to allow it to call functions inline, for instance:
app.[…].fdtd.fluxvposition(…).get()
in OmniSim.
As a result, all functions must now be called with brackets, even if they do not have arguments. For instance:
wg.evlist.update
wg.evlist[1].neff
will no longer work, instead you will need to use:
wg.evlist.update()
wg.evlist[1].neff()
I have written a Python script that will allow users to check their scripts and update them semi-automatically; the script identifies all the lines of code that could cause problems and gets you to check them one by one and agree to the changes, whilst keeping a back up of the old files.
You will need to run this on your pyFIMM library to allow it to work with the new version; running the script on pyFIMM will still allow it to run with previous versions as it is merely adding brackets where they were previously optional. I just ran the script on pyFIMM as a test and there was only a modest number of changes to apply.
You can find more details in the Changes Logs of the new FIMMWAVE manual once you receive it.
Add field component option for plotting field squared, eg. 'Ex2', 'Ey2' etc.etc. Probably just use string check to see if last char is '2', eg. if component.endswith('2')
:...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.