Skip to content

feat: add ArrayDisplay class - #159

Open
aknierim wants to merge 14 commits into
mainfrom
array_display
Open

feat: add ArrayDisplay class#159
aknierim wants to merge 14 commits into
mainfrom
array_display

Conversation

@aknierim

@aknierim aknierim commented Jul 10, 2026

Copy link
Copy Markdown
Member

Add ArrayDisplay class that allows to plot the telescope/antenna locations from a pyvisgen Stations object. Stations now also includes a peek method, that calls ArrayDisplay on itself.

Examples

from pyvisgen.layouts import get_array_layout

arr = get_array_layout("lofar_lotss")
disp = arr.peek(zoomed=True)
image

ArrayDisplay has a builtin label method:

arr = get_array_layout("vlba")
disp = arr.peek(zoomed=True)
disp.add_labels()
image

Labels can be changed from names to ids:

arr = get_array_layout("alma_dsharp")
disp = arr.peek(zoomed=True)
disp.add_labels(ids=True)
image

@aknierim
aknierim requested a review from Kevin2 July 10, 2026 10:09
@aknierim aknierim added the enhancement New feature or request label Jul 10, 2026
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (19bab20) to head (218420e).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
+ Coverage   99.47%   99.51%   +0.04%     
==========================================
  Files          29       31       +2     
  Lines        1891     2052     +161     
==========================================
+ Hits         1881     2042     +161     
  Misses         10       10              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@aknierim
aknierim requested a review from sadiahazeem August 12, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant