-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
select_points / session-ful marking #16
Comments
If we want to support "sessions", then we also need to support merging/splitting/deleting/saving/loading sessions? Or am I over-thinking this? |
I'm also inclined at this point to switch from making
The first point requires either switching to a method to initiate marking or creating some kind of The second point could be addressed by removing @pllim -- if you give this change a thumbs up I'll implement it this morning. |
@mwcraig , since you have a real use case for this, 👍 from me. Thanks! |
This is forked from https://github.com/eteq/astrowidgets/pull/1#issuecomment-406811166 + related discussion in #10.
Specifically, about the
select_points
function from the API - it was replaced byw. is_marking = True
.My argument is that, while having
marking
be settable is tempting at first glance, I think it's better as a method because it's actually doing something. That is, the typical user (I think) isn't thinking about the act of marking stuff as a state machine, but rather a set of actions. Most workflows are either:workflow 1:
workflow 2:
To be very concrete one might select a subset of stars that are good PSF stars, and then use them to build a PSF (workflow 2), then the user wants to mark all the new locations of the stars after re-centroiding/fitting (workflow 1), then they want to mark a different set of stars from that set that turn out to look bad from the fitting (workflow 2 again).
So that sort of use case motivates
select_points
/mark_points
. It's not modal per se (at least not to the user), but rather they start the action of selecting points, then they finish and are done. Then the next time they want a different set of points.TL;DR: While I am fine with the name changes, I think
select_points
/mark_points
is still useful, and it should retain the behavior of knowing which "session" the selections were made from. Perhapsget_markers
returns all of them, butget_last_markers()
or something like that returns only the most recent set? Orget_marker_sessions()
returns a list of lists of markers?The text was updated successfully, but these errors were encountered: