Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

04c #11

Open
ABooth494 opened this issue Jul 31, 2015 · 1 comment
Open

04c #11

ABooth494 opened this issue Jul 31, 2015 · 1 comment

Comments

@ABooth494
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants