Page MenuHomePhabricator

Implement Coordinate.precisionToDim
Closed, ResolvedPublic

Description

We can convert dimension to precision, but the other way around will throw a NotImplementedError, see
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/HEAD/pywikibot%2F__init__.py#L318

Would be nice to have this implemented too.

See also: T115480 and T115481

Event Timeline

Multichill raised the priority of this task from to Lowest.
Multichill updated the task description. (Show Details)
Multichill subscribed.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptFeb 16 2015, 7:35 PM
darthbhyrava subscribed.

I'd like to claim this minitask for T89067.
But I do hope there are mentors for the project.

Change 275112 had a related patch set uploaded (by Darthbhyrava):
Change: Implement Coordinate.precisionToDim

https://gerrit.wikimedia.org/r/275112

@jayvdb - I've added in the test at wikibase_tests as required.
Could you take a look at the above patch, please?

Change 275112 merged by jenkins-bot:
Implement Coordinate.precisionToDim

https://gerrit.wikimedia.org/r/275112

This one taught me a lot.
Thanks @jayvdb !