diff --git a/mcutils.py b/mcutils.py index d0d42a3..8031598 100644 --- a/mcutils.py +++ b/mcutils.py @@ -986,6 +986,14 @@ def convert(value=1,unit="eV",out="nm"): if (unit == "eV") & (out =="nm"): 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 ###