-
Notifications
You must be signed in to change notification settings - Fork 76
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
Added initial developer docs on linking #811
Conversation
Codecov Report
@@ Coverage Diff @@
## main #811 +/- ##
=======================================
Coverage 67.21% 67.21%
=======================================
Files 65 65
Lines 4612 4612
=======================================
Hits 3100 3100
Misses 1512 1512 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you "throw away the links" and rebuild, as stated in #735 ?
I'm glad you asked! Let me add a section about that 😄 |
@pllim - done! Does this make sense? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Powerful, convincing, and most ingenious." ⭐⭐⭐⭐⭐
Proof-reading comments and nitpicks below.
docs/dev/links.rst
Outdated
|
||
Glue can handle many different link types in a same session, so for instance if | ||
one had three datasets, two of the datasets could be linked by a | ||
:class:`~glue.plugins.wcs_autolinker.wcs_autolinker.WCSLink` while two other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per comment above about intersphinx.
:class:`~glue.plugins.wcs_autolinker.wcs_autolinker.WCSLink` while two other | |
``glue.plugins.wcs_autolinker.wcs_autolinker.WCSLink``, while two other |
docs/dev/links.rst
Outdated
one had three datasets, two of the datasets could be linked by a | ||
:class:`~glue.plugins.wcs_autolinker.wcs_autolinker.WCSLink` while two other | ||
datasets could be linked by pixel coordinates. However, the same two datasets | ||
should not be linked both by :class:`~glue.plugins.wcs_autolinker.wcs_autolinker.WCSLink` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not be linked both by :class:`~glue.plugins.wcs_autolinker.wcs_autolinker.WCSLink` | |
should not be linked by both WCS |
Needs a rebase. Conflict in I'll re-review once I hear back about your API linking investigation. Thanks! |
One more question. What is the proper way to do such a thing with a table of markers when Imviz links by pixels only? Do I have to "throw away" existing links or is what I already have okay? jdaviz/jdaviz/configs/imviz/helper.py Lines 517 to 524 in 01731c0
|
@pllim - I've fixed the intersphinx links so will resolve all your comments that are purely intersphinx-related. |
If there is just one image dataset, what you have is fine (though note that the code you have will not work for non-equatorial images). If you have multiple image datasets that are offset, then how do you choose which one the markers should line up with? (since the stars in different images won't line up). I don't think there is an unambiguous answer to that. |
@pllim - ready for another review. |
Re: linking markers -- Good question and maybe @eteq can comment too. A similar conversation came up in #741 today between us. Currently, I link the markers table with a "reference image". jdaviz/jdaviz/configs/imviz/helper.py Lines 512 to 514 in 4d38952
Conceptually over at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I will merge when CI passes. I think one approval is enough.
Description
I've discussed various aspects of linking with some of you in Slack but I thought it would be good to write up some developer docs about the most recent state of linking and what I think should be best practices going forward with linking. I plan to expand this over time - and whenever someone asks me a question about linking that is not covered by this page, I will do by best to add some information to the page.
In principle we could improve this page by adding intersphinx links to the glue docs for classes and methods, but I've run out of time for today - I'll gladly accept suggestions/commits that add intersphinx links, or I can try and add it later this week or next week at some point (but would rather we merge this and then fix the intersphinx links later than delay merging for a while).
Please do ask questions about anything that is unclear during review or things that you think are missing!
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?