Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guess lat/lon columns for viewer when appropriate #110

Merged
merged 2 commits into from
May 13, 2024

Conversation

Carifio24
Copy link
Member

I saw #63 and thought that was an interesting idea, so this PR uses the relevant pywwt to resolve #63 by guessing lat/lon columns when appropriate. To me, "when appropriate" means when adding the first data layer to the viewer - if there was already a layer in the viewer, the choice might clash with what's already selected (whether that's from the automatic selection or what the user has selected), and unexpectedly changing the viewer state from what's already there is obviously not ideal.

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.21%. Comparing base (a871957) to head (f6f0135).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   69.19%   71.21%   +2.02%     
==========================================
  Files          18       18              
  Lines        1003     1063      +60     
==========================================
+ Hits          694      757      +63     
+ Misses        309      306       -3     

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

@Carifio24
Copy link
Member Author

Rebased to resolve merge conflicts.

@Carifio24 Carifio24 requested a review from astrofrog May 9, 2024 19:14
Copy link
Member

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me but would be good to add a test

@Carifio24
Copy link
Member Author

@astrofrog I've added a couple of tests for this behavior

Copy link
Member

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@astrofrog astrofrog merged commit 0321d4a into glue-viz:main May 13, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-guess RA and Dec in glue-wwt
2 participants