... | @@ -36,10 +36,18 @@ See sign off from Patricia here: https://git.ligo.org/lscsoft/pesummary/-/merge_ |
... | @@ -36,10 +36,18 @@ See sign off from Patricia here: https://git.ligo.org/lscsoft/pesummary/-/merge_ |
|
|
|
|
|
## Review tasks
|
|
## Review tasks
|
|
|
|
|
|
To confirm that the `viewing_angle` conversion is correct, we calculate the `viewing_angle` for the public `GW190814.h5` file and compare the results to the published data in [this paper](https://iopscience.iop.org/article/10.3847/2041-8213/ab960f/pdf). We run the following command line:
|
|
To confirm that the `viewing_angle` conversion is correct, we calculate the `viewing_angle` for the public `GW190814.h5` file and compare the results to the published data in [this paper](https://iopscience.iop.org/article/10.3847/2041-8213/ab960f/pdf). We run the following:
|
|
|
|
|
|
|
|
```python
|
|
|
|
>>> import h5py
|
|
|
|
>>> f = h5py.File("GW190814.h5", "r")
|
|
|
|
>>> samples = f["PublicationSamples"]["posterior_samples"]
|
|
|
|
>>> import numpy as np
|
|
|
|
>>> np.savetxt("GW190814_PublicationSamples.dat", f["PublicationSamples"]["posterior_samples"], header="\t".join(f["PublicationSamples"]["posterior_samples"].dtype.names), delimiter="\t")
|
|
|
|
```
|
|
|
|
|
|
```bash
|
|
```bash
|
|
summarypages --webdir /home/charlie.hoy/public_html/projects/pesummary_review/v0.12.0/viewing_angle --samples GW190814.h5 --compare_results C01:SEOBNRv4PHM C01:IMRPhenomPv3HM PublicationSamples --regenerate viewing_angle --gw --multi_process 6 --no_ligo_skymap
|
|
summarypages --webdir /home/charlie.hoy/public_html/projects/pesummary_review/v0.12.0/viewing_angle --samples GW190814_PublicationSamples.dat --labels PublicationSamples --regenerate viewing_angle --gw --multi_process 6 --no_ligo_skymap
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
... | | ... | |