Skip to content

Commit

Permalink
Update waveform.py
Browse files Browse the repository at this point in the history
Update typing information
  • Loading branch information
kazewong authored May 26, 2024
1 parent 8aef32c commit c77b8a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jimgw/single_event/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def __init__(self, f_ref: float = 20.0, use_lambda_tildes: bool = False):
self.f_ref = f_ref
self.use_lambda_tildes = use_lambda_tildes

def __call__(self, frequency: Array, params: dict) -> dict:
def __call__(self, frequency: Float[Array, " n_dim"], params: dict[str, Float]
) -> dict[str, Float[Array, " n_dim"]]
output = {}

if self.use_lambda_tildes:
Expand Down Expand Up @@ -151,7 +152,8 @@ def __init__(
self.use_lambda_tildes = use_lambda_tildes
self.no_taper = no_taper

def __call__(self, frequency: Array, params: dict) -> dict:
def __call__(self, frequency: Float[Array, " n_dim"], params: dict[str, Float]
) -> dict[str, Float[Array, " n_dim"]]
output = {}

if self.use_lambda_tildes:
Expand Down

0 comments on commit c77b8a6

Please sign in to comment.