... | ... | @@ -147,4 +147,38 @@ Meaning now assertion errors are raised. |
|
|
|
|
|
## Test
|
|
|
|
|
|
```python
|
|
|
>>> from pesummary.io import read
|
|
|
>>> f = read("EXP13.hdf5")
|
|
|
>>> print(f)
|
|
|
file: EXP13.hdf5
|
|
|
cls: pesummary.gw.file.formats.lalinference.LALInference
|
|
|
nsamples: 8020
|
|
|
parameters: H1_matched_filter_abs_snr, H1_matched_filter_snr_angle, ..., chain_log_noise_evidence, chain_log_bayes_factor
|
|
|
>>> type(f)
|
|
|
<class 'pesummary.gw.file.formats.lalinference.LALInference'>
|
|
|
>>> len(f.samples_dict["chirp_mass"])
|
|
|
8020
|
|
|
>>> print(f.parameters)
|
|
|
['H1_matched_filter_abs_snr', 'H1_matched_filter_snr_angle', 'H1_optimal_snr', 'H1_spcal_amp_0', 'H1_spcal_amp_1', 'H1_spcal_amp_2', 'H1_spcal_amp_3', 'H1_spcal_amp_4', 'H1_spcal_amp_5', 'H1_spcal_amp_6', 'H1_spcal_amp_7', 'H1_spcal_amp_8', 'H1_spcal_amp_9', 'H1_spcal_phase_0', 'H1_spcal_phase_1', 'H1_spcal_phase_2', 'H1_spcal_phase_3', 'H1_spcal_phase_4', 'H1_spcal_phase_5', 'H1_spcal_phase_6', 'H1_spcal_phase_7', 'H1_spcal_phase_8', 'H1_spcal_phase_9', 'L1_matched_filter_abs_snr', 'L1_matched_filter_snr_angle', 'L1_optimal_snr', 'L1_spcal_amp_0', 'L1_spcal_amp_1', 'L1_spcal_amp_2', 'L1_spcal_amp_3', 'L1_spcal_amp_4', 'L1_spcal_amp_5', 'L1_spcal_amp_6', 'L1_spcal_amp_7', 'L1_spcal_amp_8', 'L1_spcal_amp_9', 'L1_spcal_phase_0', 'L1_spcal_phase_1', 'L1_spcal_phase_2', 'L1_spcal_phase_3', 'L1_spcal_phase_4', 'L1_spcal_phase_5', 'L1_spcal_phase_6', 'L1_spcal_phase_7', 'L1_spcal_phase_8', 'L1_spcal_phase_9', 'V1_matched_filter_abs_snr', 'V1_matched_filter_snr_angle', 'V1_optimal_snr', 'V1_spcal_amp_0', 'V1_spcal_amp_1', 'V1_spcal_amp_2', 'V1_spcal_amp_3', 'V1_spcal_amp_4', 'V1_spcal_amp_5', 'V1_spcal_amp_6', 'V1_spcal_amp_7', 'V1_spcal_amp_8', 'V1_spcal_amp_9', 'V1_spcal_phase_0', 'V1_spcal_phase_1', 'V1_spcal_phase_2', 'V1_spcal_phase_3', 'V1_spcal_phase_4', 'V1_spcal_phase_5', 'V1_spcal_phase_6', 'V1_spcal_phase_7', 'V1_spcal_phase_8', 'V1_spcal_phase_9', 'azimuth', 'deltalogl', 'log_likelihood', 'loglH1', 'loglL1', 'loglV1', 'logpost', 'log_prior', 'network_matched_filter_snr', 'nullLogL', 'network_optimal_snr', 'phase', 'phi_12', 'phi_jl', 'mass_ratio', 't0', 'temperature', 'geocent_time', 'nLocalTemps', 'randomSeed', 'ra', 'dec', 'luminosity_distance', 'psi', 'chirp_mass', 'a_1', 'a_2', 'tilt_1', 'tilt_2', 'alpha', 'theta_jn', 'chain_log_evidence', 'chain_delta_log_evidence', 'chain_log_noise_evidence', 'chain_log_bayes_factor']
|
|
|
```
|
|
|
|
|
|
Consequently, we have confirmed the class name, number of samples and list of parameters displayed in the file summary. To test the file path, we do the following:
|
|
|
|
|
|
```python
|
|
|
>>> from pesummary.io import read
|
|
|
>>> f = read("./dir1/EXP13.hdf5")
|
|
|
>>> print(f)
|
|
|
file: ./dir1/EXP13.hdf5
|
|
|
cls: pesummary.gw.file.formats.lalinference.LALInference
|
|
|
nsamples: 8020
|
|
|
parameters: H1_matched_filter_abs_snr, H1_matched_filter_snr_angle, ..., chain_log_noise_evidence, chain_log_bayes_factor
|
|
|
>>> f = read("./dir1/dir2/EXP13.hdf5")
|
|
|
>>> print(f)
|
|
|
file: ./dir1/dir2/EXP13.hdf5
|
|
|
cls: pesummary.gw.file.formats.lalinference.LALInference
|
|
|
nsamples: 8020
|
|
|
parameters: H1_matched_filter_abs_snr, H1_matched_filter_snr_angle, ..., chain_log_noise_evidence, chain_log_bayes_factor
|
|
|
```
|
|
|
|
|
|
# Reviewer comments |
|
|
\ No newline at end of file |