Skip to content

Commit

Permalink
Default value can be False or 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonia Beteva committed Aug 12, 2024
1 parent 1f0f40a commit ecda013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxcubecore/HardwareObjects/abstract/AbstractNState.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def init(self):
super().init()
self.initialise_values()
# default_value should be an Enum, if defined
if self.default_value and not isinstance(self.default_value, Enum):
if self.default_value is not None and not isinstance(self.default_value, Enum):
self.default_value = self.value_to_enum(self.default_value)
self.update_value(self.default_value)

Expand Down

0 comments on commit ecda013

Please sign in to comment.