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.