Skip to content

Commit

Permalink
Slightly tweak test data
Browse files Browse the repository at this point in the history
  • Loading branch information
plaplant committed Feb 24, 2021
1 parent cf699c0 commit 6001624
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_bda_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fake_data_generator():
uvd.Nblts = uvd.Ntimes * uvd.Nbls

# define frequency array
nfreqs = 8
nfreqs = 1024
freq_array = np.linspace(50e6, 250e6, num=nfreqs)
uvd.freq_array = freq_array[np.newaxis, :]
uvd.spw_array = [0]
Expand Down Expand Up @@ -75,7 +75,7 @@ def fake_data_generator():

# set other metadata
uvd.vis_units = "uncalib"
uvd.channel_width = 5e5 # 50 kHz
uvd.channel_width = 5e4 # 50 kHz
uvd.phase_type = "drift"
uvd.baseline_array = uvd.antnums_to_baseline(uvd.ant_1_array, uvd.ant_2_array)
uvd.history = "BDA test file"
Expand Down Expand Up @@ -437,6 +437,7 @@ def test_apply_bda_ind2_key_error(fake_data):

def test_apply_bda_non_increasing_error(fake_data):
"""Test error when times in object are not monotonically increasing."""
# mess with fake data
uvd = fake_data
uvd.time_array = uvd.time_array[::-1]
max_decorr = 0.1
Expand Down

0 comments on commit 6001624

Please sign in to comment.