Skip to content

2.4.0

Choose a tag to compare

@stephenholleran stephenholleran released this 17 Dec 10:51
· 59 commits to master since this release
514c5e3

Below is an extract from the CHANGELOG file showing all the updates for this release.


[2.4.0]

New Features and Enhancements

  1. Added scale_air_pressure_to_height() to output an air pressure value for any height based on reference air temperature and air pressure values at a different measurement height. (#531)
  2. Added scale_air_density_to_height() to output an air density value for any height by applying a constant lapse rate to a known reference air density value at a reference measurement height. (#534)
  3. Added scale_air_temperature_to_height() to output an air temperature value for any height by applying a constant lapse rate to a known reference air temperature value at a reference measurement height. (#530)
  4. Updated calc_air_density() to include relative humidity as suggested in IEC 61400-12-1. (#535)
    1. Added deprecation warning the specific_gas_constant argument of calc_air_density() will be removed in v3.0.
    2. Added deprecation warning the scaling of air density to height within calc_air_density() will be removed in v3.0. Users should use scale_air_density_to_height() separately instead.
  5. Added apply_scale_factor() to scale data by the scale_factor. (#541)
  6. Added optional output to apply_wind_vane_deadband_offset() which provides a results table showing the applied offset. (#520)
  7. Added optional output to apply_device_orientation_offset() which provides a results table showing the applied offset. (#521).
  8. Updated LoadBrightHub() to use BrightHub API Keys. (#550)
    1. Added deprecation warning the username and password method of authenticating in BrightHub will be removed in a future version.
  9. Updated time_continuity_gaps() in order to take an argument minimum_gap_length which allows the user to filter the time gaps returned. (Issue #545)
  10. Updated offset_timestamps()to include last timestamp when date_to is unspecified, so that offset is applied to the entire record if date_to not specified. (#504)

Deprecated

  1. LoadBrightdata() is deprecated and will be removed in version 3.0. Please use LoadBrightHub() instead to continue accessing reanalysis data.
  2. LoadBrightHub() authentication using email and password is deprecated and will be removed in v3.0. Please migrate to API key authentication. Create and manage API keys at: https://brighthub.io/account-settings/settings.
  3. specific_gas_constant argument of calc_air_density() is deprecated and will be removed in v3.0 because the updated method depends on the gas constants for dry air and water vapour, making this argument redundant.
  4. The scaling of air density to height within calc_air_density() is deprecated and will be removed in v3.0. Users should use scale_air_density_to_height() separately instead.
  5. Support for Python ≤ 3.10 is deprecated and will be dropped in v3.0.0. Users should upgrade to Python 3.11 or newer.
  6. Support for Pandas ≤ 2.2 is deprecated and will be dropped in v3.0.0. Users should upgrade to Pandas 2.3 or newer.

Bug Fixes

  1. Fixed pandas<3.0.0 and numpy<2.3.1 dependencies, (#458)
  2. Fixed pandas deprecating warnings that were linked to frequency strings, .groupby() and .map(). (#407, #415 and #445)