Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom seasons spanning calendar years #423

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Commits on Oct 23, 2024

  1. Add baseline unit tests

    - Remove logic for requiring all 12 months to be used
    tomvothecoder committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    b663610 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f2f575 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    03ff890 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    123c57a View commit details
    Browse the repository at this point in the history
  5. Fix _drop_incomplete_seasons() adding dims to variables

    - Add conditional that determines whether subsetting time coordinates is necessary with custom seasons
    - Update docstrings for `season_config`
    - Add tests
    tomvothecoder committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    f2004d9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a18ab83 View commit details
    Browse the repository at this point in the history
  7. Fix tests

    tomvothecoder committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    8b0180f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8f45cd6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f6fa508 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6eb54b2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ffd9bbf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    601a055 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    acf1ab9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4c3e8dd View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Refactor logic for shifting months to use Xarray instead of Pandas

    - Months are also shifted in the `_preprocess_dataset()` method now. Before months were being shifted twice, once when dropping incomplete seasons or DJF, and a second time when labeling time coordinates.
    tomvothecoder committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    2ff2ba7 View commit details
    Browse the repository at this point in the history