Skip to content

Commit

Permalink
Change to GroundBased2G
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasckng committed Jul 4, 2024
1 parent d8a9d5e commit e8e645c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/jimgw/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from jaxtyping import Array, Float, Int, PRNGKeyArray, jaxtyped
from beartype import beartype as typechecker
from jimgw.single_event.utils import azimuth_zenith_to_ra_dec
from jimgw.single_event.detector import Detector, detector_preset
from jimgw.single_event.detector import GroundBased2G, detector_preset
from astropy.time import Time


Expand Down Expand Up @@ -409,7 +409,7 @@ def __init__(self, naming: str, gps: Float, ifos: list, **kwargs):
return ValueError("At least two detectors are needed to define the Earth frame")
elif isinstance(ifos[0], str):
self.ifos = [detector_preset[ifo] for ifo in ifos[:2]]
elif isinstance(ifos[0], Detector):
elif isinstance(ifos[0], GroundBased2G):
self.ifos = ifos[:2]
else:
return ValueError("ifos should be a list of detector names or Detector objects")
Expand Down
4 changes: 2 additions & 2 deletions src/jimgw/single_event/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from jax.scipy.integrate import trapezoid
from jax.scipy.special import i0e
from jaxtyping import Array, Float
from jimgw.single_event.detector import Detector
from jimgw.single_event.detector import GroundBased2G


@jit
Expand Down Expand Up @@ -256,7 +256,7 @@ def theta_phi_to_ra_dec(theta: Float, phi: Float, gmst: Float) -> tuple[Float, F


@jit
def azimuth_zenith_to_ra_dec(azimuth: Float, zenith: Float, gmst: Float, ifos: list[Detector]) -> tuple[Float, Float]:
def azimuth_zenith_to_ra_dec(azimuth: Float, zenith: Float, gmst: Float, ifos: list[GroundBased2G]) -> tuple[Float, Float]:
"""
Transforming the azimuthal angle and zenith angle in Earth frame to right ascension and declination.
Expand Down

0 comments on commit e8e645c

Please sign in to comment.