Skip to content

Commit

Permalink
fix AtomData repr. (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkerzendorf authored Sep 27, 2019
1 parent 4e5c8ec commit 52e4546
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tardis/io/atom_data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,9 @@ def _check_selected_atomic_numbers(self):
raise AtomDataMissingError(msg)

def __repr__(self):
return "<Atomic Data UUID=%s MD5=%s Lines=%d Levels=%d>" % \
(self.uuid1, self.md5, self.lines.atomic_number.count(), self.levels.energy.count())
return "<Atomic Data UUID={} MD5={} Lines={:d} Levels={:d}>".format(
self.uuid1, self.md5, self.lines.line_id.count(),
self.levels.energy.count())


class NLTEData(object):
Expand Down

0 comments on commit 52e4546

Please sign in to comment.