Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
remove some of the extra returns and oddities
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Richter authored and zjttoefs committed Jul 31, 2023
1 parent 3caf194 commit c64b186
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nexus_constructor/model/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,13 @@ def ui_value(self) -> float:
if np.isscalar(self.values.values):
val: "ValueType" = self.values.values
self.ui_value = float(val)
return float(val)
else:
self.ui_value = float(self.values.values[0])
return float(self.values.values[0])
except (ValueError, TypeError):
pass

if self._ui_value is None:
default_value = 0.0
self.ui_value = 0.0
return default_value

return self._ui_value

Expand Down

0 comments on commit c64b186

Please sign in to comment.