Skip to content

Commit e8df045

Browse files
committed
Improve alignment test in append_visibility
1 parent 51d689f commit e8df045

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎processing_components/visibility/operations.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def append_visibility(vis: Union[Visibility, BlockVisibility], othervis: Union[V
4242
assert vis.phasecentre.separation(othervis.phasecentre).value < 1e-15, "Phasecentres differ"
4343
assert vis.source == othervis.source, "Not the same source"
4444
if isinstance(vis, BlockVisibility):
45-
assert numpy.testing.assert_array_almost_equal_nulp(vis.frequency, othervis.frequency, nulp=12)
45+
assert numpy.max(numpy.abs(vis.frequency - othervis.frequency)) < 1e-6
4646

4747
vis.data = numpy.hstack((vis.data, othervis.data))
4848
return vis

‎tests/processing_components/test_testing_support.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_create_vis_iter(self):
210210
for i, vis in enumerate(vis_iter):
211211
assert vis.nvis
212212
if i == 0:
213-
fullvis = vis
213+
fullvis = copy_visibility(vis)
214214
totalnvis = vis.nvis
215215
else:
216216
fullvis = append_visibility(fullvis, vis)

0 commit comments

Comments
 (0)