Add __slots__ for performance

This commit is contained in:
XANTRONIX 2025-03-02 11:22:48 -05:00
parent 0d7656acb2
commit 547cf6320e

View file

@ -14,6 +14,11 @@ class RAOBReaderException(Exception):
...
class RAOBSample():
__slots__ = (
'surface', 'height', 'pressure', 'temp', 'dewpoint',
'wind_dir', 'wind_speed'
)
def __init__(self):
self.surface: bool = False
self.height: float = None