Skip to content

get_sun returns vector solution for single time #3998

Closed

Description

@bmorris3

@eteq : Is this intended behavior? Shouldn't get_sun return a scalar sky coordinate for a scalar time?

>>> time = Time.now()
>>> time.isscalar
True
>>> sun = get_sun(time)
>>> sun.isscalar
False
>>> sun[0]
<SkyCoord (GCRS: obstime=2015-07-22 22:39:14.781846, obsgeoloc=[ 0.  0.  0.] m, obsgeovel=[ 0.  0.  0.] m / s):39:14.781846, obsgeoloc=[ 0.  0.  0.] m, obsgeovel=[ 0.  0.  0.] m / s): (ra, dec, distance) in (deg, deg, AU)
    (122.76730836, 20.02852949, 1.01598715)>

Activity

  1. self-assigned this
    on Jul 22, 2015
  2. added this to the v1.0.4 milestone on Jul 22, 2015
  3. eteq commented on Jul 22, 2015

    @eteq
    Member

    Hmm, this is definitely not intended, and appears to be a regression in v1.0.3 (i.e., it's correct in v1.0-v1.0.2).

    Cant help but think it might be related to #3920 somehow...

  4. eteq commented on Jul 22, 2015

    @eteq
    Member

    I bet it's somehow caused by #3750, which was between v1.0.2 and 1.0.3 and touched the relevant functionality - will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions