------------------
Buoy
~~~~
- **Realtime**: ``get`` now supports Wave Summary data (i.e., dataset="spec").
Observation
~~~~~~~~~~~
- **MeteorologicalObservation**: new model of type ``Observation``
to represent API calls for realtime meteorological data. Attributes
return instances of ``ObservationDatum`` by label (snaked cased).
This directly supports enhancements for static type checking introduced
in this release.
- **WaveSummaryObservation**: new model of type ``Observation`` to
represent API calls for realtime wave summary data. Attributes
return instances of ``ObservationDatum`` by label (snaked cased).
This directly supports enhancements for static type checking
introduced in this release.
- **ObservationDatum**: renamed ``Observation`` to ``ObservationDatum``.
This represents a piece of data that was observed by a buoy at a unique
datetime and contains metadata like unit of measurement (i.e., ``.unit``).
It is renamed to better define its function and purpose.
mypy
~~~~
- **Types**: extend type checking support to all objects and iterables.
Internal
~~~~~~~~
- Update tests to account for incoming changes.
- Bump all dependencies to latest.
Breaking Changes
-------------------
Observations
~~~~~~~~~~~~
- **Observation**: is now ``ObservationDatum``; the original purpose of
``Observation``, which was introduced in v0.3.0, has been moved to
this new object.
- **ObservationDatum**: value will default to ``None`` (type: NoneType)
when datum missing instead of ``nan`` (type: float). This change should
improve experience when working with ``JSON`` objects or databases.
- **Observations**: container for models of type ``Observation`` such as
``MeteorologicalObservation``, which will be new response type for all
API calls.
Buoy
~~~~
- **Realtime**: ``get`` returns an iterable ``Observations`` object. The type of
iterable provided depends on the query. If requesting meteorological data, type
of ``Observation`` would be ``MeteorologicalObservation``. The primary purpose
of these types of ``Observation`` objects is to define available attributes.