VOUnit#
- class astropy.units.format.VOUnit(*args, **kwargs)[源代码]#
基类:
Generic
VO使用的单位的IVOA标准。
这是一个 Units in the VO 1.0 .
属性摘要
方法总结
format_exponential_notation
(val[, format_spec])将值格式化为指数表示法。
parse
(s[, debug])将字符串转换为单位对象。
to_string
(unit[, fraction])将单位转换为其字符串表示形式。
属性文档
- name = 'vounit'#
方法文件
- classmethod to_string(unit, fraction=False)[源代码]#
将单位转换为其字符串表示形式。
实施
to_string
。- 参数:
- 加薪:
ValueError
如果
fraction
不被识别。