Skip to content

v0.4.2

Compare
Choose a tag to compare
@kylejb kylejb released this 05 Sep 22:36
· 29 commits to main since this release
74c4a40

Features

mypy

ObservationDatum

  • ObservationFloatDatum: validate numeric values (previously named ObservationDatum); .value returns either float or None. (PR #14 by @kylejb)
  • ObservationStringDatum: validate non-numeric values; .value returns either str or None. (PR #14 by @kylejb)

Observation

  • MeteorologicalObservation: attributes return either ObservationFloatDatum or ObservationStringDatum after validating data provided from NDBC. (PR #14 by @kylejb)
  • WaveSummaryObservation: attributes return either ObservationFloatDatum or ObservationStringDatum after validating data provided from NDBC. (PR #14 by @kylejb)

Observations

  • MeteorologicalObservations: can use += syntax on an instance of this class in order to append MeteorologicalObservation records. (PR #14 by @kylejb)
  • WaveSummaryObservations: can use += syntax on an instance of this class in order to append WaveSummaryObservation records. (PR #14 by @kylejb)

Documentation

  • ✏️ Remove unnecessary isinstance checks from examples to take advantage of typing improvements introduced in this minor release. (PR #14 by @kylejb)

Internal

  • ⚙️ Bump all development dependencies to latest. (PR #14 by @kylejb)
  • 🧪 Update tests to include checks for expected attributes by dataset type. (PR #14 by @kylejb)