Skip to content

Commit

Permalink
test: relax stringency on longest baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Jul 14, 2023
1 parent 665bfb3 commit ddff19f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/run-docs-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
papermill -k sense docs/tutorials/${{ matrix.demo }}.ipynb output-${{ matrix.demo }}.ipynb
- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.demo }}
path: output-${{ matrix.demo }}.ipynb
3 changes: 2 additions & 1 deletion tests/test_observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ def test_longest_used_baseline(bm):
a = Observatory(
antpos=np.array([[0, 0, 0], [1, 0, 0], [2, 0, 0]]) * units.m, beam=bm
)

assert np.isclose(
a.longest_used_baseline() / a.metres_to_wavelengths, 2 * units.m, atol=1e-4
a.longest_used_baseline() / a.metres_to_wavelengths, 2 * units.m, atol=1e-3
)
assert np.isclose(
a.longest_used_baseline(bl_max=1.5 * units.m) / a.metres_to_wavelengths,
Expand Down

0 comments on commit ddff19f

Please sign in to comment.