Console

class astropy.units.format.console.Console [edit on github][source]

Bases: astropy.units.format.base.Base

Output-only format for to display pretty formatting at the console.

For example:

>>> print fluxunit.to_string('console')
 erg
------
s cm^2

Methods Summary

to_string(unit)

Methods Documentation

to_string(unit) [edit on github][source]

Page Contents