diff --git a/translation.py b/translation.py index 6b3956832..652599946 100644 --- a/translation.py +++ b/translation.py @@ -10,214 +10,17 @@ dim = len(x) names = x.columns.values +namesCap = [str.upper(n) if str.isalpha(n) else n for n in names] y = {} +for n in namesCap: + y[n] = np.array(x[str.lower(n)]) + +locals().update(y) + +AGIR1 = agir1 +MIdR = MIDR -for n in names: - y[n] = np.array(x[n]) - -AGIR1 = y['agir1'] -DSI = y['dsi'] -EFI = y['efi'] -EIC = y['eic'] -ELECT = y['elect'] -FDED = y['fded'] -FLPDYR = y['flpdyr'] -FLPDMO = y['flpdmo'] -f2441 = y['f2441'] -f3800 = y['f3800'] -f6251 = y['f6251'] -f8582 = y['f8582'] -f8606 = y['f8606'] -IE = y['ie'] -MARS = y['mars'] -MIdR = y['midr'] -n20 = y['n20'] -n24 = y['n24'] -n25 = y['n25'] -PREP = y['prep'] -SCHB = y['schb'] -SCHCF = y['schcf'] -SCHE = y['sche'] -STATE = y['state'] -TFORM = y['tform'] -TXST = y['txst'] -XFPT = y['xfpt'] -XFST = y['xfst'] -XOCAH = y['xocah'] -XOCAWH = y['xocawh'] -XOODEP = y['xoodep'] -XOPAR = y['xopar'] -XTOT = y['xtot'] -e00200 = y['e00200'] -e00300 = y['e00300'] -e00400 = y['e00400'] -e00600 = y['e00600'] -e00650 = y['e00650'] -e00700 = y['e00700'] -e00800 = y['e00800'] -e00900 = y['e00900'] -e01000 = y['e01000'] -e01100 = y['e01100'] -e01200 = y['e01200'] -e01400 = y['e01400'] -e01500 = y['e01500'] -e01700 = y['e01700'] -e02000 = y['e02000'] -e02100 = y['e02100'] -e02300 = y['e02300'] -e02400 = y['e02400'] -e02500 = y['e02500'] -e03150 = y['e03150'] -e03210 = y['e03210'] -e03220 = y['e03220'] -e03230 = y['e03230'] -e03260 = y['e03260'] -e03270 = y['e03270'] -e03240 = y['e03240'] -e03290 = y['e03290'] -e03300 = y['e03300'] -e03400 = y['e03400'] -e03500 = y['e03500'] -e00100 = y['e00100'] -p04470 = y['p04470'] -e04250 = y['e04250'] -e04600 = y['e04600'] -e04800 = y['e04800'] -e05100 = y['e05100'] -e05200 = y['e05200'] -e05800 = y['e05800'] -e06000 = y['e06000'] -e06200 = y['e06200'] -e06300 = y['e06300'] -e09600 = y['e09600'] -e07180 = y['e07180'] -e07200 = y['e07200'] -e07220 = y['e07220'] -e07230 = y['e07230'] -e07240 = y['e07240'] -e07260 = y['e07260'] -e07300 = y['e07300'] -e07400 = y['e07400'] -e07600 = y['e07600'] -p08000 = y['p08000'] -e07150 = y['e07150'] -e06500 = y['e06500'] -e08800 = y['e08800'] -e09400 = y['e09400'] -e09700 = y['e09700'] -e09800 = y['e09800'] -e09900 = y['e09900'] -e10300 = y['e10300'] -e10700 = y['e10700'] -e10900 = y['e10900'] -e59560 = y['e59560'] -e59680 = y['e59680'] -e59700 = y['e59700'] -e59720 = y['e59720'] -e11550 = y['e11550'] -e11070 = y['e11070'] -e11100 = y['e11100'] -e11200 = y['e11200'] -e11300 = y['e11300'] -e11400 = y['e11400'] -e11570 = y['e11570'] -e11580 = y['e11580'] -e11581 = y['e11581'] -e11582 = y['e11582'] -e11583 = y['e11583'] -e10605 = y['e10605'] -e11900 = y['e11900'] -e12000 = y['e12000'] -e12200 = y['e12200'] -e17500 = y['e17500'] -e18425 = y['e18425'] -e18450 = y['e18450'] -e18500 = y['e18500'] -e19200 = y['e19200'] -e19550 = y['e19550'] -e19800 = y['e19800'] -e20100 = y['e20100'] -e19700 = y['e19700'] -e20550 = y['e20550'] -e20600 = y['e20600'] -e20400 = y['e20400'] -e20800 = y['e20800'] -e20500 = y['e20500'] -e21040 = y['e21040'] -p22250 = y['p22250'] -e22320 = y['e22320'] -e22370 = y['e22370'] -p23250 = y['p23250'] -e24515 = y['e24515'] -e24516 = y['e24516'] -e24518 = y['e24518'] -e24535 = y['e24535'] -e24560 = y['e24560'] -e24598 = y['e24598'] -e24615 = y['e24615'] -e24570 = y['e24570'] -p25350 = y['p25350'] -e25370 = y['e25370'] -e25380 = y['e25380'] -p25470 = y['p25470'] -p25700 = y['p25700'] -e25820 = y['e25820'] -e25850 = y['e25850'] -e25860 = y['e25860'] -e25940 = y['e25940'] -e25980 = y['e25980'] -e25920 = y['e25920'] -e25960 = y['e25960'] -e26110 = y['e26110'] -e26170 = y['e26170'] -e26190 = y['e26190'] -e26160 = y['e26160'] -e26180 = y['e26180'] -e26270 = y['e26270'] -e26100 = y['e26100'] -e26390 = y['e26390'] -e26400 = y['e26400'] -e27200 = y['e27200'] -e30400 = y['e30400'] -e30500 = y['e30500'] -e32800 = y['e32800'] -e33000 = y['e33000'] -e53240 = y['e53240'] -e53280 = y['e53280'] -e53410 = y['e53410'] -e53300 = y['e53300'] -e53317 = y['e53317'] -e53458 = y['e53458'] -e58950 = y['e58950'] -e58990 = y['e58990'] -p60100 = y['p60100'] -p61850 = y['p61850'] -e60000 = y['e60000'] -e62100 = y['e62100'] -e62900 = y['e62900'] -e62720 = y['e62720'] -e62730 = y['e62730'] -e62740 = y['e62740'] -p65300 = y['p65300'] -p65400 = y['p65400'] -e68000 = y['e68000'] -e82200 = y['e82200'] -t27800 = y['t27800'] -e27860 = y['s27860'] -p27895 = y['p27895'] -e87500 = y['e87500'] -e87510 = y['e87510'] -e87520 = y['e87520'] -e87530 = y['e87530'] -e87540 = y['e87540'] -e87550 = y['e87550'] -RECID = y['recid'] -s006 = y['s006'] -s008 = y['s008'] -s009 = y['s009'] -WSAMP = y['wsamp'] -TXRT = y['txrt'] _adctcrt = np.array([0.15]) #Rate for additional ctc