crash on addInterferenceFunction() without any error message
|Status:||Resolved||Start date:||29 Jul 2013|
|Target version:||Sprint 15|
When trying to add a 2DParaCrystal interference function without setting a probability distribution to it, a crash occurs without any error message. See example attached.
#5 Updated by pospelov about 7 years ago
Fixed. Now in release 0.8.2.
Please note that in this release we switched conventions for Particle() object to accept material and not refractive index. This is done to be consistent with Layer() constructors.
particle = Particle(n_particle, ff)
now will be
mParticle = MaterialManager.getHomogeneousMaterial("Particle",1e-06, 1e-08)
particle = Particle(mParticle, ff)
All examples have been updated.