supermanzer / NDBC

Repository for housing Python code for fetching, parsing, and loading NDBC data into a local Python object for analysis.
MIT License
13 stars 4 forks source link

Review use of namedtuple for base data structure #36

Open supermanzer opened 3 years ago

supermanzer commented 3 years ago

from collections import namedtuple

Named tuples provide clear and concise data access via keys and dot notation. While the tuple is immutable, the data structures it contains can be mutable. This could provide some improvements in data access beyond the @property decorators currently in use. Review this more thoroughly and how it may impact data access methods.

Reference: https://realpython.com/python-namedtuple/