Bug #339

crash on addInterferenceFunction() without any error message

Added by Anonymous about 7 years ago. Updated about 7 years ago.

Status:ResolvedStart date:29 Jul 2013
Priority:HighDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 15

Description

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.

ba_simulation.py Magnifier (2.21 KB) Anonymous, 29 Jul 2013 13:25

History

#1 Updated by pospelov about 7 years ago

  • Status changed from New to Sprint

#2 Updated by pospelov about 7 years ago

  • Target version set to Sprint 15

#3 Updated by pospelov about 7 years ago

  • Priority changed from Normal to High

#4 Updated by pospelov about 7 years ago

  • Assignee set to pospelov

#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.

n_particle=complex_t(1-1e-06, 1e-08)
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.

#6 Updated by pospelov about 7 years ago

  • Status changed from Sprint to Resolved

Also available in: Atom PDF