Skip to content

Commit

Permalink
[BUG]: fix dtypes changing in plot_interferometer_waveform_posterior (#…
Browse files Browse the repository at this point in the history
…870)

* fixing small bug which changes dtypes in CBCResult.plot_interferometer_waveform_posterior

* Added name (requirement)

* updating PR

---------

Co-authored-by: Cheng Foo <[email protected]>
  • Loading branch information
foocheng and Cheng Foo authored Jan 24, 2025
1 parent b7be990 commit 32c044d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Bruce Edelman
Carl-Johan Haster
Cecilio Garcia-Quiros
Charlie Hoy
Cheng Foo
Chentao Yang
Christopher Philip Luke Berry
Christos Karathanasis
Expand Down
3 changes: 1 addition & 2 deletions bilby/gw/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,7 @@ def plot_interferometer_waveform_posterior(

fd_waveforms = list()
td_waveforms = list()
for _, params in samples.iterrows():
params = dict(params)
for params in samples.to_dict(orient="records"):
wf_pols = waveform_generator.frequency_domain_strain(params)
fd_waveform = interferometer.get_detector_response(wf_pols, params)
fd_waveforms.append(fd_waveform[frequency_idxs])
Expand Down

0 comments on commit 32c044d

Please sign in to comment.