Just a quick note on converting API code between Mathematica, Python, and Matlab. API code will be nearly identical in all languages, so it’s fairly easy to convert code from one to the other. Here’s an example of getting the surface type from the LDE.
Mathematica:
mySurface = primarySystem@LDE@GetSurfaceAtf2]@Type@ToStringS“”]
Python or Matlab:
mySurface = primarySystem.LDE.GetSurfaceAt(2).Type.ToString()
And a table of the differences:
Mathematica reserves the “_” character for variables, so an upper-case U is used instead. For example, in Mathematica, a new FFT MTF analysis can be launched this way:
newWin = primarySystem@Analyses@NewUFftMtfy]
But in Matlab or Python, this is:
newWin = primarySystem.Analyses.New_FftMtf()