space-physics / maidenhead

Python Maidenhead <--> WGS84 coordinate conversions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't specify precision in to_maiden

djboulet opened this issue · comments

I get TypeError when trying to specify a precision.

Python 3.7.7 (default, Apr 23 2020, 14:54:40)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import maidenhead as mh
mh.to_maiden(45.0,-75.0)
'FN25ma'
mh.to_maiden(45.0,-75.0,2)
Traceback (most recent call last):
File "", line 1, in
TypeError: to_maiden() takes from 1 to 2 positional arguments but 3 were given

Am I missing something obvious?

Thanks, I made precision a positional argument now.