hpparvi / Parviainen-2015-TrES-3b-OSIRIS

2 stars 2 forks source link

04c #11

Open ABooth494 opened 9 years ago

ABooth494 commented 9 years ago

error in block 7

NameError Traceback (most recent call last)

in () ----> 1 dfn['e_ppm'] = 1e6_dfn.e 2 dfm['e_ppm'] = 1e6_dfm.e 3 4 pars = 'tc rho b k e_ppm c x u v'.split() 5 cp = sb.color_palette() NameError: name 'dfn' is not defined --- We added this block of code before 7: hdf = HDFStore(join('results','pe.h5')) dfn=hdf.get('bb/rn_nomask') dfm=hdf.get('bb/rn_masked') hdf.close() The code runs and we get the histograms but we aren't sure if they are correct since they are also absent from you notebook.
MantasAbazorius commented 9 years ago

Now that we've looked closer at the code, it seems dfn and dim are defined in [3] as frn and frm, so we just have to say dfn = frn and it works, not sure if there is a reason for not just naming the variables in [3] as dfn and dfm.