Skip to content

Commit

Permalink
Allow parameter value to be changed even if parameter is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Nov 11, 2024
1 parent 59c4a90 commit aeff2d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/easyscience/Objects/Variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ def value(self, value: Any):
:param value: New value of self
:return: None
"""
if not self.enabled:
if global_object.debug:
raise CoreSetException(f'{str(self)} is not enabled.')
return
#if not self.enabled:
# if global_object.debug:
# raise CoreSetException(f'{str(self)} is not enabled.')
# return
self.__deepValueSetter(value)
if self._callback.fset is not None:
try:
Expand Down

0 comments on commit aeff2d4

Please sign in to comment.