From e16e822779a982cfc7113e823ede87953ed1c5f7 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Wed, 14 Apr 2021 16:35:45 +0100 Subject: [PATCH] removed unnecessary lines in setters --- neutronics_material_maker/material.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/neutronics_material_maker/material.py b/neutronics_material_maker/material.py index 04b88ee..33ca941 100644 --- a/neutronics_material_maker/material.py +++ b/neutronics_material_maker/material.py @@ -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): @@ -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): @@ -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): @@ -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):