added angle conversion shorrtcuts deg and rad
This commit is contained in:
parent
55a4403971
commit
eab1bcdb26
|
@ -986,6 +986,14 @@ def convert(value=1,unit="eV",out="nm"):
|
||||||
if (unit == "eV") & (out =="nm"):
|
if (unit == "eV") & (out =="nm"):
|
||||||
return 1239.8/value
|
return 1239.8/value
|
||||||
|
|
||||||
|
def deg(rad):
|
||||||
|
""" convert radians to deg """
|
||||||
|
return np.rad2deg(rad)
|
||||||
|
|
||||||
|
|
||||||
|
def deg(rad):
|
||||||
|
""" convert deg to radians"""
|
||||||
|
return np.deg2rad(deg)
|
||||||
|
|
||||||
### IMINUIT RELATED ###
|
### IMINUIT RELATED ###
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue