## Bug #1810

### GUI: unconsistency in deg2rad convertion for angle distributions

Status: | Resolved | Start date: | 26 May 2017 | |
---|---|---|---|---|

Priority: | Normal | Due date: | ||

Assignee: | pospelov | % Done: | 0% | |

Category: | - | |||

Target version: | Sprint 34 |

**Description**

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

### History

#### #1 Updated by herck almost 3 years ago

**Description**updated (diff)**Assignee**set to*herck*

#### #2 Updated by herck almost 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 almost 3 years ago

**Assignee**deleted ()*herck*

#### #4 Updated by pospelov almost 3 years ago

**Assignee**set to*pospelov*

#### #5 Updated by pospelov almost 3 years ago

**Status**changed from*Sprint*to*Resolved*