Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #82 from proinsias/autofix/wrapped2_to3_fix
Browse files Browse the repository at this point in the history
Explicitly numbered replacement fields
  • Loading branch information
astrojuanlu committed Dec 8, 2015
2 parents 28cafab + 5848992 commit 4be9a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poliastro/bodies.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, k, name=None, symbol=None, R=0 * u.km):
self.R = R

def __str__(self):
return u"{} ({})".format(self.name, self.symbol)
return u"{0} ({1})".format(self.name, self.symbol)

def _repr_latex_(self):
"""Creates a LaTeX representation.
Expand Down
2 changes: 1 addition & 1 deletion poliastro/twobody/classical.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _repr_latex_(self):
pairs = zip(elem_names, elem_values)
res = r"\\".join(["{0} & = {1}".format(name, value)
for name, value in pairs])
return r"$\begin{{align}}{}\end{{align}}$".format(res)
return r"$\begin{{align}}{0}\end{{align}}$".format(res)

def to_vectors(self):
r, v = coe2rv(self.attractor.k.to(u.km ** 3 / u.s ** 2).value,
Expand Down

0 comments on commit 4be9a34

Please sign in to comment.