Skip to content

Commit

Permalink
changed formatting for unused kwargs error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgolomb committed Sep 23, 2024
1 parent 768e1e0 commit d7dc520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bilby/gw/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _base_lal_cbc_fd_waveform(
h_cross[frequency_bounds] *= time_shift

if len(waveform_kwargs) > 0:
logger.warning(UNUSED_KWARGS_MESSAGE.format(waveform_kwargs))
logger.warning(UNUSED_KWARGS_MESSAGE.format(waveform_kwargs=waveform_kwargs))

return dict(plus=h_plus, cross=h_cross)

Expand Down Expand Up @@ -1128,7 +1128,7 @@ def _base_waveform_frequency_sequence(
raise

if len(waveform_kwargs) > 0:
logger.warning(UNUSED_KWARGS_MESSAGE.format(waveform_kwargs))
logger.warning(UNUSED_KWARGS_MESSAGE.format(waveform_kwargs=waveform_kwargs))

return dict(plus=h_plus.data.data, cross=h_cross.data.data)

Expand Down

0 comments on commit d7dc520

Please sign in to comment.