Skip to content

Commit

Permalink
change jax version and try different tf
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-baier committed Dec 31, 2024
1 parent d093f1d commit 6e53242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hasasia/sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def get_Tf(designmatrix, toas, N=None, nf=200, fmin=None, fmax=2e-7,
else:
G = Gmatrix
m = G.shape[1]
Gtilde = jnp.zeros((ff.size, G.shape[1]), dtype=jnp.complex128)
Gtilde = np.dot(np.exp(1j*2*np.pi*ff[:,np.newaxis]*toas),G).astype(jnp.complex128)
Gtilde = jnp.zeros((ff.size, G.shape[1]), dtype=jnp.complex64)
Gtilde = np.dot(np.exp(1j*2*np.pi*ff[:,np.newaxis]*toas),G).astype(jnp.complex64)
Tmat = jnp.matmul(jnp.conjugate(Gtilde),Gtilde.T)/N_TOA
if twofreqs:
Tmat = np.real(Tmat)
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy>=1.14
scipy>=1.0
astropy>=3.0
jaxlib
jax
healpy
jaxlib>=0.3.0
jax[cpu]~=0.4
healpy>=1.14

0 comments on commit 6e53242

Please sign in to comment.