Handled warning message

This commit is contained in:
Luis Aleixo 2021-11-08 16:54:40 +01:00
parent ac2a5035aa
commit 4ebbe878b4

View file

@ -341,7 +341,7 @@ class HingedWindow(WindowOpening):
window_width: _VectorisedFloat = 0.0
def __post_init__(self):
if self.window_width is 0.0:
if self.window_width is float(0.0):
raise ValueError('window_width must be set')
@property