Skip to content

Commit

Permalink
Merge pull request #130 from ukaea/cleaner_setters
Browse files Browse the repository at this point in the history
removed unnecessary lines in setters
  • Loading branch information
shimwell authored Apr 14, 2021
2 parents a666651 + e16e822 commit 572f554
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions neutronics_material_maker/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ def serpent_material(self):
str: A Serpent material card
"""

self._serpent_material = make_serpent_material(self)
return self._serpent_material
return make_serpent_material(self)

@serpent_material.setter
def serpent_material(self, value):
Expand All @@ -316,8 +315,8 @@ def mcnp_material(self):
Returns:
str: A MCNP material card
"""
self._mcnp_material = make_mcnp_material(self)
return self._mcnp_material

return make_mcnp_material(self)

@mcnp_material.setter
def mcnp_material(self, value):
Expand All @@ -333,8 +332,8 @@ def shift_material(self):
Returns:
str: A Shift material card
"""
self._shift_material = make_shift_material(self)
return self._shift_material

return make_shift_material(self)

@shift_material.setter
def shift_material(self, value):
Expand All @@ -348,8 +347,8 @@ def fispact_material(self) -> str:
Returns:
str: A FISPACT material card
"""
self._fispact_material = make_fispact_material(self)
return self._fispact_material

return make_fispact_material(self)

@fispact_material.setter
def fispact_material(self, value):
Expand Down

0 comments on commit 572f554

Please sign in to comment.