Skip to content

Commit 8944678

Browse files
committed
change class name to LatexInline
1 parent c368a79 commit 8944678

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎astropy/units/format/__init__.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
from .cds import CDS
1515
from .console import Console
1616
from .fits import Fits
17-
from .latex import Latex, Latex_inline
17+
from .latex import Latex, LatexInline
1818
from .ogip import OGIP
1919
from .unicode_format import Unicode
2020
from .vounit import VOUnit
2121

2222
__all__ = [
23-
'Base', 'Generic', 'CDS', 'Console', 'Fits', 'Latex', 'Latex_inline',
23+
'Base', 'Generic', 'CDS', 'Console', 'Fits', 'Latex', 'LatexInline',
2424
'OGIP', 'Unicode', 'Unscaled', 'VOUnit', 'get_format']
2525

2626
FORMATS = [
27-
'Generic', 'CDS', 'Console', 'Fits', 'Latex', 'Latex_inline', 'OGIP',
27+
'Generic', 'CDS', 'Console', 'Fits', 'Latex', 'LatexInline', 'OGIP',
2828
'Unicode', 'Unscaled', 'VOUnit']
2929

3030

‎astropy/units/format/latex.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def to_string(self, unit):
9696

9797
return r'$\mathrm{{{0}}}$'.format(s)
9898

99-
class Latex_inline(Latex):
99+
class LatexInline(Latex):
100100
"""
101101
Output LaTeX to display the unit based on IAU style guidelines with negative
102102
powers.
@@ -106,6 +106,7 @@ class Latex_inline(Latex):
106106
`ApJ and AJ style guide
107107
<http://aas.org/authors/manuscript-preparation-aj-apj-author-instructions>`_.
108108
"""
109+
name = 'latex_inline'
109110

110111
def _format_bases(self, unit):
111112
return self._format_unit_list(zip(unit.bases, unit.powers))

0 commit comments

Comments
 (0)