Bug #1810

GUI: unconsistency in deg2rad convertion for angle distributions

Added by pospelov about 3 years ago. Updated about 3 years ago.

Status:ResolvedStart date:26 May 2017
Priority:NormalDue date:
Assignee:pospelov% Done:


Target version:Sprint 34


See email from Wolfgang Gruber:

I tried to simulate GISAXS with a distribution of inclination angles. If for example a Gaussian distribution is chosen, the input in GUI is the mean value of the inclination angel in degrees (eg. 0.3°). Exported to Python the simulation.setBeamParameters reads:

simulation.setBeamParameters(0.1341*nm, 9.1385225936e-05*deg, 0.0*deg).

The value "9.1385225936e-05" , obviously expected in degrees, is not the value of 0.3° in radian. Is this a bug in the software or how can I interpret this value?

And one Question by Marvin:
If you use particle form factors with an angle, e.g. cone, in the GUI, you have to enter the angle in degree. But I if you add a distribution to the angle, the particle distribution needs the mean angle to be given in radians, I think. This change was a bit unexpected for me.

Best regards,

Wolfgang Gruber


#1 Updated by herck about 3 years ago

  • Description updated (diff)
  • Assignee set to herck

#2 Updated by herck about 3 years ago

The first problem is solved: setBeamParameters will now correctly display the mean values in degrees with "*deg" suffix

#3 Updated by herck about 3 years ago

  • Assignee deleted (herck)

#4 Updated by pospelov about 3 years ago

  • Assignee set to pospelov

#5 Updated by pospelov about 3 years ago

  • Status changed from Sprint to Resolved

Also available in: Atom PDF