mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Use f-string in deplete.Nuclide.__repr__
This commit is contained in:
parent
e8b9e85084
commit
bd707de920
1 changed files with 2 additions and 3 deletions
|
|
@ -124,9 +124,8 @@ class Nuclide:
|
|||
self._yield_data = None
|
||||
|
||||
def __repr__(self):
|
||||
return "<Nuclide: {} ({} modes, {} reactions)>".format(
|
||||
self.name, self.n_decay_modes, self.n_reaction_paths
|
||||
)
|
||||
n_modes, n_rx = self.n_decay_modes, self.n_reaction_paths
|
||||
return f"<Nuclide: {self.name} ({n_modes} modes, {n_rx} reactions)>"
|
||||
|
||||
@property
|
||||
def n_decay_modes(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue