-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
NonFixedTarget #63
Open
bmorris3
wants to merge
4
commits into
astropy:main
Choose a base branch
from
bmorris3:nonfixedtarget
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
NonFixedTarget #63
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This looks cool but I don't have a strong opinion on the best way to do this -- I'll need to think on it a bit... |
(Note: this should not be a 0.1 blocker) |
@bmorris3 – Merge conflicts, please rebase. |
bmorris3
force-pushed
the
nonfixedtarget
branch
from
September 1, 2015 19:40
67d616a
to
1cb4468
Compare
@bmorris3 - the milestones need a little bit of cleanup ;) |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here take a first crack at the
NonFixedTarget
object.My goal was to forge ahead towards a
NonFixedTarget
framework that is flexible enough to easily build on top of. ThisNonFixedTarget
is a wrapper around some arbitrary function supplied by the user that returnsSkyCoord
s for the target at various times (and/or locations, pressures, temperatures, etc.). The various incarnations of a particularNonFixedTarget
, at different times for instance, are accessed with theat
method, like so:The flexibility of the
at
method is clearer for ourget_moon
method, which requires a location and pressure,or alternatively, if the site and pressure always remain the same and only the time changes, that can be specified in the
constant_kwargs
keyword argument and theat
method can be called with only a time.(right now, this won't actually work for my current implementation of
get_moon
, but this is the idea).My primary motivation for starting the branch is for solar system objects, which I'm currently implementing with
NonFixedTarget
s in a different branch, to operate like this:Tell me why this is a bad idea – I'm sure there are reasons.