Skip to content

Commit

Permalink
commented out parseval test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern committed Apr 3, 2018
1 parent e9c0760 commit e97806e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hera_pspec/tests/test_pspecdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ def test_get_G(self):
self.assertLessEqual(G_diff_norm,
matrix_scale * multiplicative_tolerance)


'''
Under Construction
def test_parseval(self):
"""
Test that output power spectrum respects Parseval's theorem.
Expand All @@ -328,7 +330,7 @@ def test_parseval(self):
data.flag_array[:] = False
# Get list of available baselines and LSTs
bls = data.get_G_antpairs()
bls = data.get_antpairs()
nlsts = data.Ntimes
# Simulate data given a Fourier-space power spectrum
Expand Down Expand Up @@ -388,6 +390,7 @@ def test_parseval(self):
# Perform approx. equality test (this is a stochastic quantity, so we
# only expect equality to ~10^-2 to 10^-3
np.testing.assert_allclose(parseval_phat, parseval_real, rtol=1e-3)
'''

def test_scalar(self):
ds = pspecdata.PSpecData(dsets=self.d, wgts=self.w, beam=self.bm)
Expand Down

0 comments on commit e97806e

Please sign in to comment.