eteq/astropysics — pull request #13 by segasai (2012-02-04 21:49:33+00:00)
Title:  astropysics.coords.AngularCoordinate.getDmsStr  broken for -1deg<angles<0deg

Hi,

The current behaviour of astropysics.coords.AngularCoordinate.getDmsStr was horribly broken for negative angles between -1 and 0 degrees

print astropysics.coords.AngularCoordinate(-.7).getDmsStr(sep=':',canonical=True)
00:42:00.00

I fixed the canonical case. For the noncanonical, I don't really understand its behaviour even for positive values

print astropysics.coords.AngularCoordinate(.7).getDmsStr(sep=':')
+42:00.00

Cheers,
Sergey