diff --git a/Generate_Mock_Lightcurves.ipynb b/Generate_Mock_Lightcurves.ipynb index 3291302..a24cbae 100644 --- a/Generate_Mock_Lightcurves.ipynb +++ b/Generate_Mock_Lightcurves.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 95, "metadata": { "collapsed": false }, @@ -11,7 +11,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "Neural networks not available in this version of scikit-learn. Neural networks are available from development version 0.18.\n" + "The autoreload extension is already loaded. To reload it, use:\n", + " %reload_ext autoreload\n" ] } ], @@ -62,7 +63,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 96, "metadata": { "collapsed": true }, @@ -73,7 +74,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 97, "metadata": { "collapsed": false }, @@ -84,7 +85,7 @@ "1" ] }, - "execution_count": 36, + "execution_count": 97, "metadata": {}, "output_type": "execute_result" } @@ -108,7 +109,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 98, "metadata": { "collapsed": true }, @@ -120,7 +121,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 99, "metadata": { "collapsed": false }, @@ -140,7 +141,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 100, "metadata": { "collapsed": true }, @@ -152,7 +153,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 101, "metadata": { "collapsed": false }, @@ -166,7 +167,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 102, "metadata": { "collapsed": false, "scrolled": false @@ -952,7 +953,7 @@ "data": { "text/html": [ "<Table length=103>\n", - "\n", + "
\n", "\n", "\n", "\n", @@ -1006,7 +1007,7 @@ " 133.879 desz 19.26 5.441 27.5 ab" ] }, - "execution_count": 8, + "execution_count": 102, "metadata": {}, "output_type": "execute_result" } @@ -1033,7 +1034,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 103, "metadata": { "collapsed": false }, @@ -1046,7 +1047,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 104, "metadata": { "collapsed": true }, @@ -1059,7 +1060,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 105, "metadata": { "collapsed": false }, @@ -1072,7 +1073,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 106, "metadata": { "collapsed": false }, @@ -1083,7 +1084,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 107, "metadata": { "collapsed": false }, @@ -1094,7 +1095,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 108, "metadata": { "collapsed": false }, @@ -1103,256 +1104,256 @@ "name": "stdout", "output_type": "stream", "text": [ - "[[ 1.19181088e+01 -4.04470060e+00 4.87153281e+00 1.01239078e+01\n", - " 8.61185857e+00]\n", - " [ 4.09697809e+01 3.73174449e+01 3.77358002e+01 3.91268152e+01\n", - " 3.58429086e+01]\n", - " [ 3.46644425e+01 4.02980295e+01 3.56437219e+01 3.21062736e+01\n", - " 3.79752904e+01]\n", - " [ 2.83624070e+01 3.07303783e+01 2.73784231e+01 2.61277199e+01\n", - " 2.60401650e+01]\n", - " [ 1.75297001e+01 2.20644169e+01 2.17781210e+01 1.92990661e+01\n", - " 2.55603231e+01]\n", - " [ 4.90267387e+01 5.15633585e+01 5.13827113e+01 5.12022733e+01\n", - " 4.87825238e+01]\n", - " [ 4.47736813e+01 4.81829890e+01 4.26360298e+01 4.54839706e+01\n", - " 4.93002399e+01]\n", - " [ 4.90556897e+01 4.41263965e+01 4.82714053e+01 4.93474410e+01\n", - " 4.59058918e+01]\n", - " [ 2.46041945e+01 2.62852806e+01 2.12733940e+01 2.77530651e+01\n", - " 2.31998465e+01]\n", - " [ 5.56335253e+01 5.74912337e+01 5.21273249e+01 5.37343481e+01\n", - " 5.36704820e+01]\n", - " [ 5.82037821e+01 5.22843813e+01 5.83347342e+01 5.44193740e+01\n", - " 5.67778438e+01]\n", - " [ 4.17909795e+01 4.89921193e+01 4.90289523e+01 5.14915248e+01\n", - " 3.98073618e+01]\n", - " [ 4.11121146e+01 4.46582380e+01 2.79036630e+01 2.93358641e+01\n", - " 3.54721243e+01]\n", - " [ 9.07851771e+01 8.61913680e+01 8.55122848e+01 8.04086385e+01\n", - " 8.02650855e+01]\n", - " [ 6.98336603e+01 7.15428283e+01 6.38408402e+01 6.95744412e+01\n", - " 6.64752056e+01]\n", - " [ 6.48205265e+01 6.75731669e+01 6.38719740e+01 6.24252440e+01\n", - " 5.85770705e+01]\n", - " [ 2.61510325e+01 2.47334071e+01 3.18127927e+01 2.79426644e+01\n", - " 2.90796195e+01]\n", - " [ 7.91370126e+01 8.34325864e+01 7.75923544e+01 7.77779426e+01\n", - " 8.11260351e+01]\n", - " [ 7.71476810e+01 7.05522543e+01 6.71318398e+01 7.66491911e+01\n", - " 7.14986146e+01]\n", - " [ 8.08897677e+01 7.16349177e+01 7.82308632e+01 8.00949331e+01\n", - " 7.28973552e+01]\n", - " [ 2.10607527e+01 1.95541795e+01 2.20764114e+01 1.67847792e+01\n", - " 2.18894822e+01]\n", - " [ 7.33855368e+01 7.24318694e+01 7.50478793e+01 7.26923262e+01\n", - " 7.41547675e+01]\n", - " [ 7.05085150e+01 7.24524717e+01 7.27275572e+01 6.65902764e+01\n", - " 7.08093136e+01]\n", - " [ 7.80681014e+01 7.22940849e+01 7.47533207e+01 7.94820745e+01\n", - " 7.22500474e+01]\n", - " [ 1.56119732e+01 2.01804295e+01 1.24360335e+01 1.44139752e+01\n", - " 1.45419205e+01]\n", - " [ 5.41589572e+01 6.06176734e+01 6.01592316e+01 5.71899610e+01\n", - " 5.94202822e+01]\n", - " [ 7.39026442e+01 6.77023984e+01 6.34824706e+01 6.99886166e+01\n", - " 6.95501967e+01]\n", - " [ 5.95074424e+01 6.47650813e+01 6.09222659e+01 5.89218710e+01\n", - " 6.20711782e+01]\n", - " [ 6.86476442e+00 9.43207710e+00 -6.03681611e-01 8.63024964e+00\n", - " -1.00292286e+00]\n", - " [ 3.70045411e+01 3.41692809e+01 3.71656276e+01 3.56369896e+01\n", - " 3.60357429e+01]\n", - " [ 5.60575792e+01 5.71771804e+01 5.46784948e+01 4.61986323e+01\n", - " 5.53315884e+01]\n", - " [ 4.55260731e+01 4.58853963e+01 4.72179775e+01 4.55297452e+01\n", - " 4.96837121e+01]\n", - " [ -2.44443947e+00 -2.38821692e+00 -2.74647455e+00 -2.22055623e+00\n", - " -2.05039297e+00]\n", - " [ 2.04158047e+01 2.02090472e+01 1.98819398e+01 2.24305450e+01\n", - " 2.13839936e+01]\n", - " [ 4.16816856e+01 3.68003874e+01 3.76844289e+01 4.26972054e+01\n", - " 3.58571576e+01]\n", - " [ 3.82498101e+01 3.96803700e+01 3.79066802e+01 4.01149698e+01\n", - " 4.25832870e+01]\n", - " [ -1.29412702e+00 3.34245211e+00 1.00942946e+00 1.09945161e+01\n", - " 6.43578716e+00]\n", - " [ 2.84663304e+01 3.29971378e+01 3.38260084e+01 3.54208234e+01\n", - " 3.59726627e+01]\n", - " [ 2.92147318e+01 2.64275864e+01 2.62512869e+01 3.54160443e+01\n", - " 2.16016487e+01]\n", - " [ 8.55389139e+00 2.13894616e+01 3.03285301e+01 1.02396521e+01\n", - " 3.31704442e+01]\n", - " [ -6.39895230e+00 3.76283557e+00 -4.75696993e+00 -2.02312824e+00\n", - " -9.31413240e+00]\n", - " [ 2.21219521e+01 2.88434141e+01 2.09929984e+01 2.74101400e+01\n", - " 2.21136741e+01]\n", - " [ 3.91502863e+01 3.04680134e+01 3.80638145e+01 3.71853546e+01\n", - " 3.57936174e+01]\n", - " [ 2.71146334e+01 2.66131614e+01 3.43364095e+01 3.70421700e+01\n", - " 2.81323944e+01]\n", - " [ -9.26803030e+00 -5.97885555e-01 7.12040673e+00 9.34150925e+00\n", - " 3.74804263e+00]\n", - " [ 1.57469190e+01 1.45314239e+01 1.23175970e+01 8.22716929e+00\n", - " 1.29661864e+01]\n", - " [ 1.60507208e+01 1.34733460e+01 7.02774789e+00 1.63451133e+01\n", - " 1.60719779e+01]\n", - " [ 2.92627649e+01 3.47271308e+01 3.34313032e+01 2.17108228e+01\n", - " 2.51760577e+01]\n", - " [ 5.88743645e+01 6.10409436e+01 4.23207914e+01 2.88940558e+01\n", - " 3.60790018e+01]\n", - " [ 1.12222424e+01 6.95930655e+00 9.79232801e+00 1.15362051e+01\n", - " 6.43360455e+00]\n", - " [ 1.92413022e+01 1.92630801e+01 2.84578863e+01 2.49269986e+01\n", - " 2.74371154e+01]\n", - " [ 4.70153833e+01 3.78671612e+01 4.51082134e+01 2.86741878e+01\n", - " 3.29170057e+01]\n", - " [ 3.43870587e+00 -3.28275621e+00 -7.61778723e+00 1.77291582e+01\n", - " 6.84030428e+00]\n", - " [ 1.13851295e+01 6.31459448e+00 7.75807101e+00 1.39573159e+01\n", - " 7.99443168e+00]\n", - " [ 3.13569445e+01 2.05830962e+01 3.21450042e+01 2.04890393e+01\n", - " 2.05389724e+01]\n", - " [ 2.98797577e+01 2.76745736e+01 2.69017318e+01 2.95966109e+01\n", - " 2.98299561e+01]\n", - " [ -6.18396626e-01 -6.54964625e+00 -1.14766954e+01 -1.59339534e+01\n", - " -1.98181101e+01]\n", - " [ 7.96646391e+00 1.27339348e+01 8.08933712e+00 1.03054237e+01\n", - " 8.06900495e+00]\n", - " [ 2.23083000e+01 2.35670222e+01 2.18966874e+01 2.07757526e+01\n", - " 2.47034730e+01]\n", - " [ 2.54602631e+01 2.85378887e+01 2.80669217e+01 3.54050984e+01\n", - " 3.58070039e+01]\n", - " [ 2.07651818e+00 1.21030363e+00 3.74048148e+00 -1.55129616e+00\n", - " -3.88923210e-01]\n", - " [ 8.99589204e+00 1.43954343e+01 1.46396894e+01 8.18916704e+00\n", - " 1.48107105e+01]\n", - " [ 2.57867426e+01 2.63429284e+01 2.69959478e+01 2.87441031e+01\n", - " 2.16237753e+01]\n", - " [ 5.19510592e+01 4.92037339e+01 5.41205604e+01 3.92764045e+01\n", - " 4.62467774e+01]\n", - " [ 7.31814695e+00 -1.08243154e-01 -4.23493753e+00 3.49783944e+00\n", - " 2.69455738e+00]\n", - " [ 1.30054013e+01 8.47690278e+00 1.50970414e+01 6.51589160e+00\n", - " 9.31126996e+00]\n", - " [ 1.17047782e+01 1.49105957e+01 6.01330027e+00 1.92606424e+01\n", - " 1.93617384e+01]\n", - " [ 2.77391905e+01 1.54926102e+01 2.26657979e+01 2.07895078e+01\n", - " 2.55943800e+01]\n", - " [ 9.76527725e-01 3.18476388e+00 -6.18330371e-01 -1.11330723e+00\n", - " -5.44079596e+00]\n", - " [ 6.23611599e+00 9.01414904e+00 9.71531652e+00 6.83354442e+00\n", - " 9.05581675e+00]\n", - " [ 2.27955867e+01 1.73937640e+01 1.78876941e+01 1.92413496e+01\n", - " 2.21380326e+01]\n", - " [ 2.77251451e+01 2.87290518e+01 2.07477364e+01 3.13596689e+01\n", - " 1.84207229e+01]\n", - " [ 2.30237272e+00 -2.93820844e+00 3.36117501e+00 -2.29127402e+00\n", - " 1.46471364e-02]\n", - " [ 9.13539973e+00 7.81074442e+00 9.62130065e+00 8.16226692e+00\n", - " 9.66557199e+00]\n", - " [ 1.73162372e+01 1.25147130e+01 1.77107676e+01 1.54986074e+01\n", - " 1.20859596e+01]\n", - " [ 2.38753361e+01 2.39499376e+01 1.62139659e+01 1.98127936e+01\n", - " 2.60320125e+01]\n", - " [ 1.36374686e-01 2.52128524e+00 -3.77960928e-01 -2.28849597e+00\n", - " -1.09466447e+00]\n", - " [ 6.53085540e+00 6.77881932e+00 1.49426487e+00 3.63638235e+00\n", - " 2.81237085e+00]\n", - " [ 1.40937086e+01 1.74288669e+01 1.81437253e+01 2.10121204e+01\n", - " 1.22112334e+01]\n", - " [ 2.27828541e+01 2.55993404e+01 2.28980078e+01 2.51185890e+01\n", - " 2.77091538e+01]\n", - " [ -1.32401870e+00 -2.71197587e-01 -7.82887914e-01 1.69372940e+00\n", - " 1.67982669e+00]\n", - " [ 9.25205295e+00 5.86732508e+00 8.87616440e+00 4.16868282e+00\n", - " 7.84637256e+00]\n", - " [ 1.49338683e+01 1.17256673e+01 1.59902151e+01 1.27703941e+01\n", - " 2.13512992e+01]\n", - " [ 1.98214212e+01 1.61629558e+01 2.52625366e+01 1.51751575e+01\n", - " 2.24519222e+01]\n", - " [ 2.02197510e+00 -8.12381798e-02 3.89789402e+00 5.33308128e+00\n", - " -7.54729019e-01]\n", - " [ 9.74165614e+00 7.13999230e+00 7.69564468e+00 8.69436688e+00\n", - " 7.17245068e+00]\n", - " [ 1.13927470e+01 7.13025498e+00 2.33813512e+01 1.08946090e+01\n", - " 1.55090730e+01]\n", - " [ 2.52084488e+01 2.09272233e+01 2.42675212e+01 2.79931760e+01\n", - " 2.32320741e+01]\n", - " [ 2.54302873e+00 -1.89362250e+00 1.52275021e+00 5.10689770e+00\n", - " 4.19159195e+00]\n", - " [ 6.75971748e+00 5.10090266e+00 -4.87568994e-02 4.60745293e+00\n", - " -3.34570664e-01]\n", - " [ 1.40506529e+01 1.63790564e+01 1.62867630e+01 1.56619906e+01\n", - " 1.49101636e+01]\n", - " [ 1.90759526e+01 2.00930487e+01 1.89498223e+01 2.01399696e+01\n", - " 2.19988157e+01]\n", - " [ 4.85967499e+00 3.75385767e+00 3.83483864e+00 6.13498823e+00\n", - " 6.85205983e+00]\n", - " [ 4.00138542e+00 2.70644496e+00 3.67247292e+00 5.34223666e+00\n", - " 5.27594415e+00]\n", - " [ 1.05744573e+01 6.74949902e+00 1.13293693e+01 9.79424772e+00\n", - " 1.09840050e+01]\n", - " [ 2.83008792e+01 3.04478558e+01 3.11196881e+01 2.70895251e+01\n", - " 2.75066593e+01]\n", - " [ -2.83281588e-01 2.24497346e+00 5.66498048e-01 3.25457307e+00\n", - " 1.41846801e+00]\n", - " [ 3.86310431e+00 5.38061018e+00 5.39938291e+00 3.51961736e+00\n", - " 3.14136760e+00]\n", - " [ 1.62029656e+01 9.75732304e+00 3.95770317e+00 -6.14641141e+00\n", - " -7.82967526e+00]\n", - " [ 1.08554049e+01 1.02893886e+01 1.08646473e+01 1.48027541e+01\n", - " 1.62170634e+01]\n", - " [ 1.17667485e+01 2.66348879e+00 9.20927163e+00 9.08051069e+00\n", - " 7.27346302e+00]\n", - " [ 4.63417955e+00 4.63783892e-01 1.09092173e+00 1.80070125e+00\n", - " 1.58081163e-01]\n", - " [ 1.23350665e+01 -9.49839923e+00 5.61221243e+00 -3.68147785e+00\n", - " 4.63387979e+00]\n", - " [ -2.80387589e+00 -2.47311523e+00 -5.75520383e+00 2.40626302e+00\n", - " -4.33201486e+00]\n", - " [ -1.23926164e+00 2.57742095e+00 4.60117107e+00 9.42030899e+00\n", - " 9.60232710e+00]\n", - " [ 1.42964785e+01 1.10284039e+01 1.89736155e+01 1.26626296e+01\n", - " 1.35267481e+01]\n", - " [ 1.05164924e+00 3.03239724e+00 5.28407489e+00 2.94718499e+00\n", - " 1.83306593e+00]\n", - " [ 4.24620775e+00 1.54332759e+00 9.60639837e-01 -2.81920860e-01\n", - " 3.19100661e+00]\n", - " [ 6.88770283e+00 1.58384715e+00 1.02039056e+01 2.70771549e+00\n", - " 5.97833589e+00]\n", - " [ 5.36829862e+00 6.88043212e+00 1.09016119e+01 1.20683651e+01\n", - " 8.96603932e+00]\n", - " [ 4.26766866e+00 1.05110575e+00 5.25946147e+00 3.76565700e+00\n", - " -8.03189307e-01]\n", - " [ 2.94485172e+00 4.10237296e+00 2.26092390e+00 4.99142345e+00\n", - " 4.94508426e+00]\n", - " [ 1.08560398e+01 6.48241474e+00 8.44687059e+00 1.08418024e+01\n", - " 1.07955977e+01]\n", - " [ 1.60418046e+01 1.35467323e+01 1.24141236e+01 9.62655024e+00\n", - " 1.87222843e+01]\n", - " [ 4.71009019e+00 9.06240894e+00 2.78155643e-01 3.92766097e+00\n", - " 2.88418135e+00]\n", - " [ 6.99135212e+00 -5.54958941e-01 4.59980984e+00 2.98013067e+00\n", - " 5.50751005e+00]\n", - " [ 6.40726798e+00 6.94088756e+00 9.42006676e+00 6.35955465e+00\n", - " 9.05448513e+00]\n", - " [ 6.73232937e+00 8.80559280e+00 1.09479307e+01 3.14568954e+00\n", - " 1.31665372e+01]\n", - " [ 3.48149903e-02 7.55416260e+00 -2.10851592e+00 -4.40388288e-01\n", - " -4.28896585e+00]\n", - " [ 5.70002682e+00 1.01020368e+00 4.78830568e+00 5.40640469e-01\n", - " 6.74132397e+00]\n", - " [ -3.18356661e+00 8.87313872e+00 -7.03379248e+00 9.48555041e-01\n", - " -1.91457277e+00]\n", - " [ 3.86400984e+00 7.02959022e+00 1.10468120e+01 4.47854913e+00\n", - " 8.82404078e+00]\n", - " [ 9.32740163e+00 3.41323160e+00 3.89187863e+00 6.37871452e+00\n", - " 2.33637539e+00]\n", - " [ 5.36996019e+00 5.98551388e-01 1.40964264e+00 1.84793002e+00\n", - " 4.26027732e+00]\n", - " [ 4.44273493e+00 6.85166848e+00 6.42630421e+00 3.58322207e+00\n", - " 7.35714868e+00]]\n" + "[[ 2.13226893e+01 1.34303142e+01 8.39697440e+00 1.28324895e+01\n", + " 1.27738963e+01]\n", + " [ 4.03601211e+01 3.73202334e+01 3.51638647e+01 3.87514654e+01\n", + " 3.90542239e+01]\n", + " [ 3.94386806e+01 3.72975415e+01 3.58044907e+01 3.49878520e+01\n", + " 3.54684959e+01]\n", + " [ 2.84131312e+01 3.58802833e+01 2.33666175e+01 2.67496914e+01\n", + " 3.12890110e+01]\n", + " [ 2.16039548e+01 2.02623168e+01 2.67833306e+01 1.98109633e+01\n", + " 2.30189522e+01]\n", + " [ 4.86997448e+01 5.00954704e+01 4.76842407e+01 4.70656030e+01\n", + " 5.13149618e+01]\n", + " [ 4.74348390e+01 4.78691508e+01 4.53554684e+01 4.93717868e+01\n", + " 4.96421590e+01]\n", + " [ 4.44501706e+01 4.69791144e+01 5.05108771e+01 4.87416518e+01\n", + " 5.66874295e+01]\n", + " [ 2.30166425e+01 2.44231283e+01 2.79202996e+01 3.08896026e+01\n", + " 2.30183764e+01]\n", + " [ 5.36310144e+01 5.41571421e+01 5.46041663e+01 5.08318900e+01\n", + " 5.69878476e+01]\n", + " [ 5.22811211e+01 5.62466537e+01 5.08474793e+01 5.18113097e+01\n", + " 5.44128039e+01]\n", + " [ 4.00843086e+01 4.84838384e+01 5.64758088e+01 5.18465087e+01\n", + " 5.34469491e+01]\n", + " [ 3.87792302e+01 3.70700086e+01 3.88508295e+01 4.00223360e+01\n", + " 3.50511827e+01]\n", + " [ 8.72487644e+01 7.55989676e+01 8.08580226e+01 9.16531865e+01\n", + " 8.01650904e+01]\n", + " [ 6.73319681e+01 6.70903580e+01 7.09266224e+01 7.49138693e+01\n", + " 5.64805803e+01]\n", + " [ 6.47240276e+01 5.83102223e+01 6.99122553e+01 6.68949739e+01\n", + " 6.90554488e+01]\n", + " [ 2.72696790e+01 2.61338593e+01 2.31915398e+01 2.98345535e+01\n", + " 3.10277591e+01]\n", + " [ 8.03750668e+01 7.57245541e+01 7.35940321e+01 7.74959524e+01\n", + " 7.16487559e+01]\n", + " [ 7.55369064e+01 7.08694082e+01 6.75302868e+01 8.36405015e+01\n", + " 6.10904819e+01]\n", + " [ 7.77157239e+01 7.75369577e+01 7.49192799e+01 8.11693302e+01\n", + " 7.25978803e+01]\n", + " [ 1.89627261e+01 2.01558612e+01 2.46932914e+01 2.13752261e+01\n", + " 2.25947775e+01]\n", + " [ 7.45414673e+01 6.86629434e+01 7.22574538e+01 7.54701892e+01\n", + " 7.20110170e+01]\n", + " [ 6.79065103e+01 6.93815118e+01 7.20492870e+01 7.14318309e+01\n", + " 6.82342977e+01]\n", + " [ 8.11939884e+01 7.82032308e+01 8.19380911e+01 6.90277972e+01\n", + " 7.36211713e+01]\n", + " [ 1.10441272e+01 1.81018582e+01 1.01327211e+01 1.13394653e+01\n", + " 1.04446137e+01]\n", + " [ 5.44505069e+01 5.42106720e+01 5.76304706e+01 5.96000971e+01\n", + " 5.59057309e+01]\n", + " [ 6.06619628e+01 6.55321782e+01 7.45789292e+01 5.95951179e+01\n", + " 7.09383307e+01]\n", + " [ 5.92088736e+01 6.37247715e+01 6.13932059e+01 5.75083780e+01\n", + " 5.93587223e+01]\n", + " [ 1.60357846e+00 3.93176011e+00 1.81982308e+00 3.83628154e+00\n", + " 2.46198929e+00]\n", + " [ 3.62411601e+01 4.13431284e+01 4.06998386e+01 3.75847857e+01\n", + " 3.37873768e+01]\n", + " [ 5.88963267e+01 4.96415317e+01 5.14609127e+01 5.50929940e+01\n", + " 5.11845354e+01]\n", + " [ 4.10296364e+01 4.77256402e+01 4.76813837e+01 4.62973243e+01\n", + " 4.87154540e+01]\n", + " [ -1.93535260e+00 9.33135354e-01 -1.28772245e+00 -2.27215300e+00\n", + " -1.17238601e+00]\n", + " [ 1.92336674e+01 2.00301332e+01 2.09569950e+01 1.94533444e+01\n", + " 1.97704720e+01]\n", + " [ 3.84400250e+01 3.86246020e+01 3.98582857e+01 3.94408411e+01\n", + " 3.69058821e+01]\n", + " [ 3.87006251e+01 4.13937856e+01 3.85511906e+01 3.83820585e+01\n", + " 3.84047380e+01]\n", + " [ 9.37376012e-01 3.38475184e+00 1.04019776e+00 -1.65715546e+00\n", + " 5.54270266e-01]\n", + " [ 3.00609212e+01 2.38924064e+01 2.89368987e+01 3.00120677e+01\n", + " 2.54864073e+01]\n", + " [ 2.57771634e+01 2.67849038e+01 2.77892062e+01 2.89313440e+01\n", + " 2.72210903e+01]\n", + " [ 1.40270466e+01 1.36769066e+01 4.72693651e+01 3.15623605e+01\n", + " 2.34358230e+01]\n", + " [ -7.89257104e+00 -1.21022397e+00 -1.25021571e+01 -3.54556013e+00\n", + " -3.35625913e+00]\n", + " [ 2.38619722e+01 2.08086328e+01 2.32019104e+01 2.30025033e+01\n", + " 2.62389818e+01]\n", + " [ 3.29887928e+01 3.68674535e+01 2.84887032e+01 3.27455370e+01\n", + " 3.52285705e+01]\n", + " [ 2.44601983e+01 2.77749624e+01 2.48614572e+01 2.06554642e+01\n", + " 2.26939371e+01]\n", + " [ -1.98305941e+00 -4.76231546e+00 -7.23841653e+00 1.44919390e+01\n", + " 5.58781344e+00]\n", + " [ 1.57236496e+01 1.38756462e+01 1.44485937e+01 1.37131645e+01\n", + " 8.15358481e+00]\n", + " [ 2.12261291e+01 1.05690109e+01 1.85051388e+01 4.24059283e+00\n", + " 2.21012402e+01]\n", + " [ 3.85218295e+01 3.60205160e+01 3.57827465e+01 3.62563103e+01\n", + " 2.64743522e+01]\n", + " [ 6.36881473e+01 6.90823962e+01 -1.99658116e-01 -3.18540533e+01\n", + " 9.36626098e+00]\n", + " [ 5.22415348e+00 4.86576323e+00 7.52535140e+00 1.51194488e+01\n", + " 1.08174038e+01]\n", + " [ 3.64502378e+01 3.03916746e+01 1.94931831e+01 4.05074907e+01\n", + " 2.77152785e+01]\n", + " [ 4.66131177e+01 4.48049965e+01 3.45871426e+01 3.99195969e+01\n", + " 4.11316096e+01]\n", + " [ -3.55330235e+00 2.46374747e+00 5.83298774e+00 -1.05877591e+01\n", + " 2.65404827e+00]\n", + " [ 6.69685429e+00 1.11721294e+01 1.21457798e+01 2.43667949e+00\n", + " 3.84476312e+00]\n", + " [ 1.96232885e+01 1.46586243e+01 1.86861682e+01 2.42674533e+01\n", + " 2.38521295e+01]\n", + " [ 3.07545121e+01 3.09883536e+01 3.14043940e+01 2.62781633e+01\n", + " 2.33372253e+01]\n", + " [ -1.17176346e+01 -1.12836536e+01 1.81741464e+00 -1.17622796e+01\n", + " -1.88996732e+00]\n", + " [ 9.96278102e+00 1.21316034e+01 8.37776237e+00 1.40258788e+01\n", + " 1.29296249e+01]\n", + " [ 2.18620381e+01 3.01211111e+01 2.50499105e+01 1.87990729e+01\n", + " 1.91120483e+01]\n", + " [ 2.82726520e+01 3.26053876e+01 3.06615170e+01 3.33364223e+01\n", + " 2.89036370e+01]\n", + " [ -2.83618913e+00 7.81303887e+00 -3.85206825e+00 3.69329064e+00\n", + " 6.47499728e+00]\n", + " [ 1.78559059e+01 1.50637460e+01 1.81362046e+01 1.02031615e+01\n", + " 1.23073110e+01]\n", + " [ 2.44490252e+01 1.94997235e+01 3.16882663e+01 2.79074451e+01\n", + " 2.29544249e+01]\n", + " [ 4.60934345e+01 5.07444007e+01 4.60168454e+01 3.80015675e+01\n", + " 4.01501982e+01]\n", + " [ 3.98384743e+00 2.73125727e+00 1.30379126e+01 1.52442441e+00\n", + " 5.16295766e-01]\n", + " [ 1.29015148e+01 1.31955805e+01 1.57281212e+01 1.23870768e+01\n", + " 8.37033282e+00]\n", + " [ 7.78971287e+00 1.38833958e+01 9.59603362e+00 9.89381976e+00\n", + " 1.20642741e+01]\n", + " [ 2.64408756e+01 1.52242527e+01 2.80888359e+01 2.10139658e+01\n", + " 3.66478666e+01]\n", + " [ -6.94391664e+00 -1.82265911e+00 -1.79470417e+00 -1.70838787e+00\n", + " -6.42558311e+00]\n", + " [ 7.48678146e+00 9.99647357e+00 5.67355686e+00 9.65846182e+00\n", + " 1.27820898e+01]\n", + " [ 1.93369870e+01 2.11540402e+01 1.48059599e+01 1.83866107e+01\n", + " 1.62395403e+01]\n", + " [ 1.86782065e+01 1.93740687e+01 2.55130136e+01 3.01931177e+01\n", + " 2.24328371e+01]\n", + " [ -6.35740470e-01 -5.04948999e+00 8.17529981e-01 4.82363266e+00\n", + " 3.51328567e+00]\n", + " [ 6.28293797e+00 7.64983701e+00 9.15342885e+00 7.87472926e+00\n", + " 9.62505920e+00]\n", + " [ 1.75714309e+01 1.28785153e+01 1.46964732e+01 1.41797586e+01\n", + " 1.62474666e+01]\n", + " [ 2.01996707e+01 2.21650838e+01 2.14512793e+01 1.66872919e+01\n", + " 2.26067166e+01]\n", + " [ 2.09244848e+00 1.04725121e+00 -4.86741115e-01 4.34068869e+00\n", + " 2.86879154e+00]\n", + " [ 3.81330322e+00 5.73672461e+00 6.93020407e+00 2.73219444e+00\n", + " 5.68036037e+00]\n", + " [ 1.62912695e+01 1.56620048e+01 1.50894882e+01 1.87811625e+01\n", + " 1.91472459e+01]\n", + " [ 2.50313776e+01 2.75990370e+01 2.53707996e+01 2.26258427e+01\n", + " 2.75195301e+01]\n", + " [ 1.93424086e+00 -2.47936695e+00 -1.20217986e+00 2.84861932e+00\n", + " 5.59546888e-01]\n", + " [ 7.79536835e+00 8.21185377e+00 8.07992389e+00 5.94565172e+00\n", + " 6.34181690e+00]\n", + " [ 1.57725709e+01 1.76762252e+01 1.76627584e+01 1.84060370e+01\n", + " 1.61881773e+01]\n", + " [ 1.75627243e+01 1.99721994e+01 1.90327709e+01 2.22273054e+01\n", + " 2.50857114e+01]\n", + " [ 2.30866821e+00 4.29739201e+00 2.86937749e+00 3.21071492e+00\n", + " 5.53798016e+00]\n", + " [ 7.81576442e+00 7.78905447e+00 8.61136676e+00 7.72772265e+00\n", + " 9.56296291e+00]\n", + " [ 1.24764219e+01 9.76447427e+00 8.34753734e+00 1.19571627e+01\n", + " 1.94079405e+01]\n", + " [ 2.15976854e+01 2.49299673e+01 2.84375339e+01 2.06211084e+01\n", + " 2.78678145e+01]\n", + " [ 1.69636622e+01 2.01436453e+00 9.34436803e+00 3.03841600e+00\n", + " 2.00425965e+01]\n", + " [ 7.56998450e+00 1.31589152e+00 3.26858846e+00 1.97366824e+00\n", + " 9.49914587e+00]\n", + " [ 1.04347113e+01 1.26204261e+01 1.40050163e+01 1.40203268e+01\n", + " 1.55996551e+01]\n", + " [ 1.54643295e+01 1.89718566e+01 1.95065334e+01 1.88249011e+01\n", + " 1.95316722e+01]\n", + " [ 5.70684084e+00 4.16285276e+00 3.64243775e+00 5.40089202e+00\n", + " 3.78261811e+00]\n", + " [ 5.55636421e+00 4.56263435e+00 5.34923161e+00 3.19879771e+00\n", + " 3.35618961e+00]\n", + " [ 1.15225466e+01 9.54180820e+00 9.08810677e+00 5.98927793e+00\n", + " 9.70144150e+00]\n", + " [ 2.83629759e+01 2.59127208e+01 2.86263854e+01 3.00675786e+01\n", + " 3.06193696e+01]\n", + " [ -1.33824308e+00 4.57291627e-01 -6.69377155e+00 -6.12066609e-01\n", + " 9.58229395e-01]\n", + " [ 2.81894631e+00 3.18994178e+00 4.21648595e+00 3.97521761e+00\n", + " 2.41475334e+00]\n", + " [ -4.99034084e+00 -4.60571564e+00 7.10579939e+00 6.42584776e+00\n", + " 4.88982950e+00]\n", + " [ 1.01707290e+01 1.09257914e+01 6.83815843e+00 2.05827176e+01\n", + " 1.22076434e+01]\n", + " [ 3.44797767e-01 -5.41737390e-01 -7.63294500e-01 1.49596358e+00\n", + " 1.91210050e+00]\n", + " [ 1.05029177e+00 -5.72056024e+00 -1.49017545e+00 5.27240101e+00\n", + " 6.31244991e+00]\n", + " [ 2.03817772e+01 -1.23673822e+01 1.11898732e+01 1.22688372e+01\n", + " 1.58193850e+01]\n", + " [ -1.52809502e+00 2.15755290e+00 -2.31653976e+00 4.69808140e+00\n", + " 2.06684702e+00]\n", + " [ 3.98723395e+00 2.08538551e+00 2.91326505e+00 3.44610632e+00\n", + " 6.61449396e+00]\n", + " [ 1.72088580e+01 1.15850153e+01 1.65286773e+01 1.22072104e+01\n", + " 8.13573730e+00]\n", + " [ 3.47289833e+00 3.05169843e+00 6.22639404e+00 8.74179886e-01\n", + " 3.80047404e+00]\n", + " [ 3.85034443e-01 6.64433876e-01 2.57476441e+00 7.58876635e-01\n", + " 3.65276849e+00]\n", + " [ 8.58692631e+00 5.30563675e+00 3.74048887e+00 4.98597108e+00\n", + " 5.43289908e+00]\n", + " [ 1.20887080e+01 8.69999764e+00 1.04414314e+01 1.06957214e+01\n", + " 1.20812719e+01]\n", + " [ 2.76082408e+00 3.71970877e-02 6.38158323e+00 9.94038170e-01\n", + " 4.46891582e+00]\n", + " [ 4.08968680e+00 4.17133117e+00 4.07918304e+00 5.00746796e+00\n", + " 1.43226362e-01]\n", + " [ 4.95168591e+00 6.20622970e+00 6.81647895e+00 6.18081651e+00\n", + " 8.66915167e+00]\n", + " [ 1.35264641e+01 1.48124155e+01 1.16927509e+01 1.66832879e+01\n", + " 1.20907563e+01]\n", + " [ -1.25846162e+00 -2.70456259e+00 8.85281738e+00 1.10681402e+01\n", + " 9.47925463e+00]\n", + " [ 7.45345934e+00 3.79308034e+00 4.85050791e+00 4.00158586e+00\n", + " 4.16758461e+00]\n", + " [ 1.46306573e+01 6.00677604e-01 7.10256761e+00 1.36123628e+01\n", + " 1.37056425e+01]\n", + " [ 8.79781988e+00 8.80217475e+00 5.20601669e+00 1.10007691e+01\n", + " 4.81704421e+00]\n", + " [ -7.07717205e+00 -3.81068817e+00 1.16198498e+00 1.58850588e+01\n", + " -2.08272310e+00]\n", + " [ 7.68210135e+00 2.80472048e+00 7.27672470e+00 5.99652081e+00\n", + " 4.64248916e+00]\n", + " [ -2.66378252e+00 -2.91541065e+00 -2.45475914e+00 -4.03636384e+00\n", + " 1.08463610e+01]\n", + " [ 6.65884267e+00 8.71920718e+00 4.02373183e+00 5.08504368e+00\n", + " 3.47021396e+00]\n", + " [ 4.01278213e+00 5.03220130e+00 4.37281657e+00 2.84609761e+00\n", + " 2.55574888e+00]\n", + " [ 2.57168945e+00 1.66993298e+00 6.03166664e+00 4.67132062e+00\n", + " 2.82538646e+00]\n", + " [ 5.28930977e-01 9.78183669e-02 1.83112465e+00 7.01781525e+00\n", + " 1.84982559e+00]]\n" ] } ], @@ -1363,7 +1364,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 109, "metadata": { "collapsed": false }, @@ -1374,7 +1375,7 @@ "True" ] }, - "execution_count": 16, + "execution_count": 109, "metadata": {}, "output_type": "execute_result" } @@ -1385,7 +1386,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 110, "metadata": { "collapsed": false }, @@ -1396,7 +1397,7 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": 111, "metadata": { "collapsed": false }, @@ -1404,7 +1405,8 @@ { "data": { "text/plain": [ - "['_Dataset__on_press',\n", + "['_Dataset__ind',\n", + " '_Dataset__on_press',\n", " '_Dataset__plot_this',\n", " '__doc__',\n", " '__init__',\n", @@ -1420,6 +1422,7 @@ " 'object_names',\n", " 'plot_all',\n", " 'plot_lc',\n", + " 'plot_model',\n", " 'reduced_chi_squared',\n", " 'rootdir',\n", " 'set_model',\n", @@ -1427,7 +1430,7 @@ " 'survey_name']" ] }, - "execution_count": 44, + "execution_count": 111, "metadata": {}, "output_type": "execute_result" } @@ -1438,7 +1441,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 112, "metadata": { "collapsed": false }, @@ -1478,7 +1481,7 @@ }, { "cell_type": "code", - "execution_count": 48, + "execution_count": 113, "metadata": { "collapsed": false }, @@ -1491,7 +1494,21 @@ }, { "cell_type": "code", - "execution_count": 93, + "execution_count": 139, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "#for i in range(0,len(data)):\n", + "# print i, np.where(data[i].split()[0]==\"FLUXCALERR:\")\n", + "# MJD FLT FIELD FLUXCAL FLUXCALERR SNR MAG MAGERR SIM_MAG\n", + "test_table_II.rename_column( 'MJD','mjd')" + ] + }, + { + "cell_type": "code", + "execution_count": 122, "metadata": { "collapsed": false }, @@ -1500,7 +1517,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "['FILTERS:', 'griz']\n" + " ['FILTERS:', 'griz']\n" ] } ], @@ -1514,13 +1531,21 @@ " survey = data[0].split()\n", " stuffRA = data[6].split()\n", " stuffDec = data[7].split()\n", - " table.meta = {survey[0][:-1]: survey[1], stuffRA[0][:-1]: stuffRA[1], stuffDec[0][:-1]: stuffDec[1],filters[0][:-1]: filters[1]}\n", + " MWEBV = data[11].split()\n", + " table.meta = {survey[0][:-1]: survey[1], stuffRA[0][:-1]: stuffRA[1], stuffDec[0][:-1]: stuffDec[1],filters[0][:-1]: filters[1],\n", + " MWEBV[0][:-1]: MWEBV[1]}\n", + " table.rename_column('mjd', 'MJD')\n", + " table.rename_column('filter ', 'MJD')\n", + " table.rename_column('flux', 'MJD')\n", + " table.rename_column('flux_error', 'MJD')\n", + " table.rename_column('zp', 'MJD')\n", + " table.rename_column('zpsys', 'MJD')\n", " sncosmo.write_lc(table, 'name.txt', format = 'snana')" ] }, { "cell_type": "code", - "execution_count": 94, + "execution_count": 123, "metadata": { "collapsed": false }, @@ -1529,45 +1554,45 @@ "name": "stdout", "output_type": "stream", "text": [ - " mjd filter flux flux_error zp zpsys\n", - "--------------- ------ ------- ---------- ---- -----\n", - " 0.0 desg -1.628 10.48 27.5 ab\n", - "0.0160000000033 desr -12.65 7.845 27.5 ab\n", - "0.0320000000065 desi -10.86 9.314 27.5 ab\n", - " 0.977000000006 desz -4.156 5.328 27.5 ab\n", - " 1.985 desg -2.024 3.205 27.5 ab\n", - " 2.0 desr 0.0281 2.425 27.5 ab\n", - " 2.016 desi 0.3376 4.31 27.5 ab\n", - " 9.957 desz -6.591 27.32 27.5 ab\n", - " 10.106 desg 3.678 25.57 27.5 ab\n", - " 10.121 desr -1.047 4.152 27.5 ab\n", - " ... ... ... ... ... ...\n", - " 113.868 desr 1.241 4.828 27.5 ab\n", - " 113.957 desi 14.87 5.61 27.5 ab\n", - " 113.965 desz 13.31 5.166 27.5 ab\n", - " 125.817 desg -0.2672 2.48 27.5 ab\n", - " 125.821 desr 2.634 1.659 27.5 ab\n", - " 125.836 desi 5.357 2.513 27.5 ab\n", - " 125.852 desz 9.238 3.94 27.5 ab\n", - " 133.821 desg -0.5652 7.568 27.5 ab\n", - " 133.832 desr 1.952 2.963 27.5 ab\n", - " 133.856 desi 0.3662 5.022 27.5 ab\n", - " 133.879 desz 19.26 5.441 27.5 ab\n", + " mjd filter flux flux_error zp zpsys\n", + "--------------- ------ --------------- ---------- ---- -----\n", + " 0.0 desg -14.720074909 10.48 27.5 ab\n", + "0.0160000000033 desr -10.0200738069 7.845 27.5 ab\n", + "0.0320000000065 desi 15.8283821719 9.314 27.5 ab\n", + " 0.977000000006 desz -1.54473523767 5.328 27.5 ab\n", + " 1.985 desg -2.07808996718 3.205 27.5 ab\n", + " 2.0 desr -2.68677401212 2.425 27.5 ab\n", + " 2.016 desi -3.0445893869 4.31 27.5 ab\n", + " 9.957 desz 14.1105912517 27.32 27.5 ab\n", + " 10.106 desg -17.7926700123 25.57 27.5 ab\n", + " 10.121 desr 3.18628290331 4.152 27.5 ab\n", + " ... ... ... ... ... ...\n", + " 113.868 desr -2.87035155679 4.828 27.5 ab\n", + " 113.957 desi 12.558242454 5.61 27.5 ab\n", + " 113.965 desz 11.8116159538 5.166 27.5 ab\n", + " 125.817 desg 1.54318656796 2.48 27.5 ab\n", + " 125.821 desr 2.98782795663 1.659 27.5 ab\n", + " 125.836 desi 4.47720426145 2.513 27.5 ab\n", + " 125.852 desz 11.0274173635 3.94 27.5 ab\n", + " 133.821 desg -17.7641729991 7.568 27.5 ab\n", + " 133.832 desr -0.163720929295 2.963 27.5 ab\n", + " 133.856 desi 2.35875326448 5.022 27.5 ab\n", + " 133.879 desz 25.5197080048 5.441 27.5 ab\n", "Length = 103 rows\n" ] }, { "ename": "ValueError", - "evalue": "Missing required metadata kw: MWEBV", + "evalue": "Missing required column name: FLUXCALERR", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", - "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mtype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_table_II\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;32mprint\u001b[0m \u001b[0mtest_table_II\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mmake_new_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfilename\u001b[0m \u001b[0;34m,\u001b[0m \u001b[0mtest_table_II\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;32m\u001b[0m in \u001b[0;36mmake_new_data\u001b[0;34m(filename, table)\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0mstuffDec\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m7\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msplit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[0mtable\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmeta\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m{\u001b[0m\u001b[0msurvey\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0msurvey\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstuffRA\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mstuffRA\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstuffDec\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mstuffDec\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mfilters\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mfilters\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 11\u001b[0;31m \u001b[0msncosmo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwrite_lc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtable\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'name.txt'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mformat\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'snana'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", + "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mtype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_table_II\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;32mprint\u001b[0m \u001b[0mtest_table_II\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mmake_new_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfilename\u001b[0m \u001b[0;34m,\u001b[0m \u001b[0mtest_table_II\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", + "\u001b[0;32m\u001b[0m in \u001b[0;36mmake_new_data\u001b[0;34m(filename, table)\u001b[0m\n\u001b[1;32m 11\u001b[0m table.meta = {survey[0][:-1]: survey[1], stuffRA[0][:-1]: stuffRA[1], stuffDec[0][:-1]: stuffDec[1],filters[0][:-1]: filters[1],\n\u001b[1;32m 12\u001b[0m MWEBV[0][:-1]: MWEBV[1]}\n\u001b[0;32m---> 13\u001b[0;31m \u001b[0msncosmo\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwrite_lc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtable\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'name.txt'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mformat\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'snana'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m//anaconda/lib/python2.7/site-packages/sncosmo/io.pyc\u001b[0m in \u001b[0;36mwrite_lc\u001b[0;34m(data, fname, format, **kwargs)\u001b[0m\n\u001b[1;32m 715\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdict_to_array\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 716\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'w'\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 717\u001b[0;31m \u001b[0mWRITERS\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmeta\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 718\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 719\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", - "\u001b[0;32m//anaconda/lib/python2.7/site-packages/sncosmo/io.pyc\u001b[0m in \u001b[0;36m_write_snana\u001b[0;34m(f, data, meta, **kwargs)\u001b[0m\n\u001b[1;32m 617\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mSNANA_REQUIRED_META\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 618\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mkeys_as_written\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 619\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'Missing required metadata kw: '\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 620\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 621\u001b[0m \u001b[0;31m# Get column names and data length\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", - "\u001b[0;31mValueError\u001b[0m: Missing required metadata kw: MWEBV" + "\u001b[0;32m//anaconda/lib/python2.7/site-packages/sncosmo/io.pyc\u001b[0m in \u001b[0;36m_write_snana\u001b[0;34m(f, data, meta, **kwargs)\u001b[0m\n\u001b[1;32m 635\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mSNANA_REQUIRED_COLUMN\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 636\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mkey\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mkeys_to_write\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 637\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'Missing required column name: '\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 638\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 639\u001b[0m \u001b[0;31m# Write the header\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mValueError\u001b[0m: Missing required column name: FLUXCALERR" ] } ],
mjdfilterfluxflux_errorzpzpsys
float64str4float64float64float64str2
0.0desg-1.62810.4827.5ab