Skip to content
Snippets Groups Projects
Commit 66acddbe authored by Martin Lange's avatar Martin Lange
Browse files

simplify setting status: no strings allowed anymore; fix docstring

parent 689896f6
No related branches found
No related tags found
1 merge request!232Simplify setting status: no strings allowed anymore
Pipeline #134119 passed with stages
in 7 minutes and 10 seconds
......@@ -469,7 +469,7 @@ def is_quantified(xdata):
Returns
-------
bool
Wether the data is a quantified DataArray.
Whether the data is a quantified DataArray.
"""
return isinstance(xdata, xr.DataArray) and xdata.pint.units is not None
......
......@@ -201,8 +201,7 @@ class Component(IComponent, Loggable, ABC):
@status.setter
def status(self, status):
"""The component's current status."""
with ErrorLogger(self.logger):
self._status = get_enum_value(status, ComponentStatus, FinamStatusError)
self._status = status
@property
def name(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment