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

Sky grid fixes #4610

Open
2 of 5 tasks
pannarale opened this issue Jan 25, 2024 · 5 comments
Open
2 of 5 tasks

Sky grid fixes #4610

pannarale opened this issue Jan 25, 2024 · 5 comments
Assignees
Labels
PyGRB PyGRB development

Comments

@pannarale
Copy link
Contributor

pannarale commented Jan 25, 2024

Regarding #4485 , let's

@titodalcanton
Copy link
Contributor

PEP8 should have (mostly) been addressed in #4988.

@pannarale
Copy link
Contributor Author

pannarale commented Dec 20, 2024

  • At line 90, sky_grid.py does detectors = hf.attrs['detectors'], but pycbc_make_sky_grid fills ins hf['instruments'] = [d for d in args.instruments] at line 187. So if you generate a sky grid with pycbc_make_sky_grid and pass it to pycbc_multi_inspiral, it will fail because sky_grid.py expects 'detectors'. I leave it to @titodalcanton to decide which of the two ends to modify.

P.S. It would probably be better to have pycbc_make_sky_grid use the sky_grid.py module when writing the grid file to keep things centralised. Poking around, changes may have an impact on pycbc_multi_inspiral (which reads the sky grid and computes time delays and antenna patterns), and on pycbc/workflow/grb_utils.py (when it makes the sky_grid node) and pycbc/workflow/jobsetup.py (when it makes the multi_inspiral nodes).

@titodalcanton
Copy link
Contributor

@pannarale indeed, thanks for catching that. And a similar problem exists with the ref_gps_time / trigger_time attributes.

@titodalcanton
Copy link
Contributor

titodalcanton commented Jan 9, 2025

#5000 ticks the second and last checkboxes.

@pannarale
Copy link
Contributor Author

For reference, here is a run on multiple sky points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyGRB PyGRB development
Projects
Status: In Progress
Development

No branches or pull requests

4 participants