fix deg.py
This commit is contained in:
parent
f39a268b30
commit
b5ae02513a
@ -10,8 +10,8 @@ def guess(inp):
|
|||||||
if isinstance(inp, Dec):
|
if isinstance(inp, Dec):
|
||||||
return inp
|
return inp
|
||||||
|
|
||||||
if '-' in instr:
|
if isinstance(inp, str) and '-' in inp:
|
||||||
deg, mm, ss = instr.split('-')
|
deg, mm, ss = inp.split('-')
|
||||||
ddeg, dmm, dss = Dec(deg), Dec(mm), Dec(ss)
|
ddeg, dmm, dss = Dec(deg), Dec(mm), Dec(ss)
|
||||||
return deg + dmm/60 + dss/3600
|
return deg + dmm/60 + dss/3600
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user