Skip to content

v3.2.0

Latest
Compare
Choose a tag to compare
@jklenzing jklenzing released this 27 Mar 22:15
7bd8a23

The Python Satellite Data Analysis Toolkit (pysat) v3.2.0 adds multiple new features for data support, including custom data set concatenation and improved metadata support.

  • New Features
    • Added tests for warnings, logging messages, and errors in the Instrument
      clean method.
    • Added Instrument loading test with padding and for times without data.
    • Allow Instruments to define custom concat_data methods.
    • Added include kwarg to Instrument.concat_data to expand allowed inputs.
    • Added data kwarg to the Instrument class __getitem__ method and reduced
      memory usage in the load method.
    • Added a hidden method the Instrument class _get_epoch_name_from_data to
      reduce code duplication.
    • Added __delitem__ to Meta and drop to MetaHeader and MetaLabels classes.
    • Modified Meta to allow MetaHeader attribute access directly from Meta.
    • Expanded Meta.drop to traverse attached MetaLabel and MetaHeader data.
    • Added __delitem__ and drop to Instrument and Constellation classes.
    • Added options to customize pysat_ndtesting instrument with sample rate,
      shift in time.
    • Added orbit number to pysat_ndtesting.
    • Added the overwrite kwarg to utils.registry.register_by_module.
    • Added unit tests for all functions in utils.files.
    • Reduced code duplication in the utils.files.parse_fixed_width_filenames
      and utils.files.parse_delimited_filenames functions
    • Added ability to set Meta data using meta['data_var', 'label'] = value
      structure.
    • Added test for loading multiple days of data.
    • Added user-friendly warning when trying to load data when there are
      no files at all to load. Situation currently raises an IndexError.
    • Expanded eval_warnings to support testing against multiple warning types.
  • Bug Fix
    • Fixed utils.files.parse_fixed_width_filenames output for empty file list
    • Updated the parsing functions in utils.files to consider type specifiers
      when identifying appropriate files in a directory
  • Maintenance
    • Update link redirects in docs.
    • Improved Instrument ValueError messages.
    • Updated Constellation.to_inst method definition of coords, using dims
      to combine common dimensions instead.
    • Implement pyproject to manage metadata
    • Updated docstring references to pysat.utils.files in other modules.
    • Remove Sphinx cap
    • Update usage of whitespace and if statements (E275)
    • Remove hacking cap
    • Removed deprecated pysat_testing2d instrument
    • Removed deprecated meta children info
    • Removed deprecated pysat_testing_xarray instrument
    • Removed deprecated pysat_testing2d_xarray instrument
    • Removed deprecated instrument_test_class
    • Removed deprecated malformed_index kwarg in test instrumennts
    • Removed deprecated convert_timestamp_to_datetime function
    • Removed deprecated _test_download_travis flag
    • Removed deprecated freq kwarg from download
    • Removed deprecated use_header kwarg from load and changed default
      behaviour to use_header=True
    • Use temporary directories for files created during test_utils.py
    • Updated code file headers to be consistent and include NRL pub release
    • Added acknowledgements.md which includes full institutional funding list
    • Removed deprecated labels kwarg for pysat.Instrument()
    • Removed deprecated utils.load_netcdf4 method
    • Removed deprecated _filter_netcdf4_metadata method
    • Removed deprecated usage of None for tag and inst_id
    • Removed deprecated kwarg behaviour for 'fname' in to_netCDF4
    • Added verion cap for sphinx_rtd_theme
    • Used line specific noqa statements for imports
    • Add _new_tests flag for packages to ignore select new tests
    • Add CI testing for python 3.12