Skip to content

Commit

Permalink
removed unnecessary lines in setters
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Apr 14, 2021
1 parent 210d029 commit e16e822
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 @@ -317,8 +317,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 @@ -333,8 +332,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 @@ -350,8 +349,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 @@ -365,8 +364,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 e16e822

Please sign in to comment.