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

Typo in readme example #1

Closed
avivajpeyi opened this issue Jun 30, 2021 · 1 comment
Closed

Typo in readme example #1

avivajpeyi opened this issue Jun 30, 2021 · 1 comment

Comments

@avivajpeyi
Copy link

I think there might be a typo in the readme. Instead of the following,

import h5py

catalog_high = h5py.File('./3-OGC_low.hdf', 'r')

# Selecting parts of the catalog
region = candidates['mass1'][:] + candidates['mass2'][:] < 4
lowmass_snr = all_candidates['H1_snr'][:][region]

I think that it might be:

import h5py

candidates = h5py.File('./3-OGC_low.hdf', 'r')

# Selecting parts of the catalog
region = candidates['mass1'][:] + candidates['mass2'][:] < 4
lowmass_snr = candidates['H1_snr'][:][region]
@ahnitz
Copy link
Member

ahnitz commented Jun 30, 2021

Yes, you are right. Thank you!

@ahnitz ahnitz closed this as completed Aug 24, 2021
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