UnrecognizedUnit

class astropy.units.core.UnrecognizedUnit(st) [edit on github][source]

Bases: astropy.units.core.IrreducibleUnit

A unit that did not parse correctly. This allows for roundtripping it as a string, but no unit operations actually work on it.

Parameters :

st : str

The name of the unit.

Methods Summary

get_format_name(format)
is_equivalent(other[, equivalencies])
get_converter(other[, equivalencies])
to_string([format])

Methods Documentation

get_format_name(format) [edit on github][source]
is_equivalent(other, equivalencies=[]) [edit on github][source]
get_converter(other, equivalencies=[]) [edit on github][source]
to_string(format=u'generic') [edit on github][source]

Page Contents