Skip to content

Commit

Permalink
Fix tests to find data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
philbull committed Feb 20, 2018
1 parent 3588a72 commit f4c1f1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hera_pspec/tests/test_pspecdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,17 @@ def test_get_G(self):

def test_scalar(self):
dfiles = [
'data/zen.2458042.12552.xx.HH.uvXAA',
'data/zen.2458042.12552.xx.HH.uvXAA'
'zen.2458042.12552.xx.HH.uvXAA',
'zen.2458042.12552.xx.HH.uvXAA'
]
beamfile = 'data/NF_HERA_Beams.beamfits'
beamfile = DATADIR + 'NF_HERA_Beams.beamfits'
d = []
for dfile in dfiles:
_d = uv.UVData()
_d.read_miriad(dfile)
_d.read_miriad(DATADIR + dfile)
d.append(_d)
w = [None for _d in dfiles]
self.ds = pspecdata.PSpecData(dsets=d, wgts=w,beam=beamfile)
self.ds = pspecdata.PSpecData(dsets=d, wgts=w, beam=beamfile)

scalar = self.ds.scalar()
scalar_double_steps = self.ds.scalar(num_steps=20000) # convergence of integral
Expand Down

0 comments on commit f4c1f1d

Please sign in to comment.