mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fix some docstrings
This commit is contained in:
parent
f685827912
commit
7ca7b1c7cf
1 changed files with 3 additions and 7 deletions
|
|
@ -25,7 +25,7 @@ class _AtomicRepresentation(EqualityMixin):
|
|||
|
||||
Raises
|
||||
------
|
||||
IOError
|
||||
ValueError
|
||||
When the number of protons (z) declared is higher than the number
|
||||
of nucleons (a)
|
||||
|
||||
|
|
@ -56,17 +56,13 @@ class _AtomicRepresentation(EqualityMixin):
|
|||
self._a = a
|
||||
|
||||
def __add__(self, other):
|
||||
"""Adds two _AtomicRepresentations.
|
||||
|
||||
"""
|
||||
"""Add two _AtomicRepresentations"""
|
||||
z = self.z + other.z
|
||||
a = self.a + other.a
|
||||
return _AtomicRepresentation(z=z, a=a)
|
||||
|
||||
def __sub__(self, other):
|
||||
"""Substracts two _AtomicRepresentations.
|
||||
|
||||
"""
|
||||
"""Substract two _AtomicRepresentations"""
|
||||
z = self.z - other.z
|
||||
a = self.a - other.a
|
||||
return _AtomicRepresentation(z=z, a=a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue