File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -297,14 +297,14 @@ def miriade(self) -> Ephem:
297
297
return eph
298
298
299
299
def _format_eph (self , eph : Ephem ) -> Ephem :
300
- # convert RA and Dec to Angle in units of degree
301
- eph ["ra" ] = Angle (eph ["ra" ], eph ["ra" ].unit ).to ("deg" )
300
+ # convert RA and Dec to Angle
301
+ eph ["ra" ] = Angle (eph ["ra" ], eph ["ra" ].unit ).to (
302
+ "hourangle" if self .args .radec == "hmsdms" else "deg"
303
+ )
302
304
eph ["dec" ] = Angle (eph ["dec" ], eph ["dec" ].unit ).to ("deg" )
303
305
304
306
if self .args .radec == "hmsdms" :
305
- eph ["ra" ].info .format = lambda x : x .to_string (
306
- sep = ":" , precision = 2 , unit = "hourangle"
307
- )
307
+ eph ["ra" ].info .format = lambda x : x .to_string (sep = ":" , precision = 2 )
308
308
eph ["dec" ].info .format = lambda x : x .to_string (sep = ":" , precision = 1 )
309
309
else :
310
310
eph ["ra" ].info .format = lambda x : x .to_string (
You can’t perform that action at this time.
0 commit comments