Skip to content

Commit

Permalink
Setter should not return anything
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Oct 19, 2023
1 parent 936b3c9 commit 3841206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyaedt/maxwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from pyaedt.application.Analysis3D import FieldAnalysis3D
from pyaedt.application.Variables import decompose_variable_value
from pyaedt.generic.DataHandlers import float_units
from pyaedt.generic.constants import SOLUTIONS
from pyaedt.generic.general_methods import generate_unique_name
from pyaedt.generic.general_methods import open_file
Expand Down Expand Up @@ -2841,7 +2840,7 @@ def model_depth(self, value):
"""Set model depth."""
if isinstance(value, float) or isinstance(value, int):
value = self.modeler._arg_with_dim(value, self.modeler.model_units)
return self.change_design_settings({"ModelDepth": value})
self.change_design_settings({"ModelDepth": value})

@pyaedt_function_handler()
def generate_design_data(self, linefilter=None, objectfilter=None):
Expand Down

0 comments on commit 3841206

Please sign in to comment.