We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec5f58 commit 9d7c3cdCopy full SHA for 9d7c3cd
smodels/base/physicsUnits.py
@@ -9,6 +9,7 @@
9
"""
10
11
import unum
12
+SModelSUnit = unum.Unum # for type hinting
13
14
# description see
15
# http://home.scarlet.be/be052320/Unum.html
@@ -54,7 +55,11 @@
54
55
Called as script, will print some base.physicsUnits.
56
57
58
+ def getXSec() -> SModelSUnit:
59
+ return 3.0*fb
60
+
61
three = 3.0 * fb
62
print(three, "=", three.asUnit(pb))
63
seven = 7.0 * TeV
64
print(seven, "=", seven.asUnit(GeV))
65
+ print ( getXSec() )
0 commit comments