functions.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 from wirecell import units
4 
5 def unitify(valstr, unit=""):
6  if unit:
7  valstr += "*" + unit
8  return eval(valstr, units.__dict__)
def unitify(valstr, unit="")
Definition: functions.py:5