Skip to content

Commit

Permalink
Merge pull request #66 from enthought/fix/distinguish-minutes
Browse files Browse the repository at this point in the history
BUG: Restore angular minutes and seconds parsing.
  • Loading branch information
jonathanrocher committed Oct 7, 2018
2 parents 049ea82 + 07abf0a commit 633c9fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scimath/units/unit_parser.py
Expand Up @@ -94,6 +94,13 @@ def _cacheExactLabels(self):
if isinstance(value, unit) and value.label is not None:
self.exact_labels[value.label] = value

# Angular minutes and seconds are overridden by the time units of the
# same name, so explicitly add their labels here.
from . import angle

self.exact_labels[angle.minute.label] = angle.minute
self.exact_labels[angle.second.label] = angle.second

def _loadModules(self):

from . import SI
Expand Down

0 comments on commit 633c9fc

Please sign in to comment.