"""
Computes various amplitudes

Arguments:
-dB:interact with db instead of watts

W.T. Franks FMP Berlin
"""

import sys
from sys import argv
sys.path.append(root.UtilPath.getTopspinHome()+ '/exp/stan/nmr/py/BioPY/modules/')

import Setup
import TS_Version as Ver

cmds=argv
WdB="W"

########################
#  Read in preferences #
########################

for cmd in cmds:
  if cmd.find('-dB') >=0 or cmd.find('-DB') >=0 or cmd.find('-db') >=0 :
    WdB="dB"
if Ver.get()[1] == "2": WdB="dB"

Setup.LoadFromData(WdB)
Setup.NH(WdB)

faec6ccc7e0c5764c8105a86947c99e996b7333d
<mask token>

<mask token>
sys.path.append(root.UtilPath.getTopspinHome() +
    '/exp/stan/nmr/py/BioPY/modules/')
<mask token>
for cmd in cmds:
    if cmd.find('-dB') >= 0 or cmd.find('-DB') >= 0 or cmd.find('-db') >= 0:
        WdB = 'dB'
if Ver.get()[1] == '2':
    WdB = 'dB'
Setup.LoadFromData(WdB)
Setup.NH(WdB)

<mask token>
sys.path.append(root.UtilPath.getTopspinHome() +
    '/exp/stan/nmr/py/BioPY/modules/')
<mask token>
cmds = argv
WdB = 'W'
for cmd in cmds:
    if cmd.find('-dB') >= 0 or cmd.find('-DB') >= 0 or cmd.find('-db') >= 0:
        WdB = 'dB'
if Ver.get()[1] == '2':
    WdB = 'dB'
Setup.LoadFromData(WdB)
Setup.NH(WdB)

<mask token>
import sys
from sys import argv
sys.path.append(root.UtilPath.getTopspinHome() +
    '/exp/stan/nmr/py/BioPY/modules/')
import Setup
import TS_Version as Ver
cmds = argv
WdB = 'W'
for cmd in cmds:
    if cmd.find('-dB') >= 0 or cmd.find('-DB') >= 0 or cmd.find('-db') >= 0:
        WdB = 'dB'
if Ver.get()[1] == '2':
    WdB = 'dB'
Setup.LoadFromData(WdB)
Setup.NH(WdB)

"""
Computes various amplitudes

Arguments:
-dB:interact with db instead of watts

W.T. Franks FMP Berlin
"""

import sys
from sys import argv
sys.path.append(root.UtilPath.getTopspinHome()+ '/exp/stan/nmr/py/BioPY/modules/')

import Setup
import TS_Version as Ver

cmds=argv
WdB="W"

########################
#  Read in preferences #
########################

for cmd in cmds:
  if cmd.find('-dB') >=0 or cmd.find('-DB') >=0 or cmd.find('-db') >=0 :
    WdB="dB"
if Ver.get()[1] == "2": WdB="dB"

Setup.LoadFromData(WdB)
Setup.NH(WdB)
