eteq/astropysics — pull request #8 by mwcraig (2011-12-12 03:30:34+00:00)
Title: Fixes several list-related issues in apparentCoordinates.

Apologies in advance if this also contains the changes to EquatorialCoordinatesEquinox...I rebased when I shouldn't have or something, and in trying to undo that may have confused things.

In any event, there are several problems in `obstools.Site.apparentCoordinates` related to lists, illustrated by the code snippet below. This pull request fixes those problems.

```python

from astropysics import obstools

a_site = obstools.Site(lat=46.86678,long=-96.453278,alt=311.8)

# fails because datetime isn't a list
a_site.apparentCoordinates('14:03:12.510 +54:20:53.10',
datetime=2455907.522083,refraction=False)

# fails because localSiderealTime cannot take list input
a_site.apparentCoordinates('14:03:12.510 +54:20:53.10',
datetime=[2455907.522083,2455908.522083],
refraction=False)

# fails because the result of apparentCoordinates to that point is a
# list (because datetime is a list)
a_site.apparentCoordinates('14:03:12.510 +54:20:53.10',
datetime=[2455907.522083],refraction=True)
```