Skip to content

Create Forecast base class #1127

Closed
Closed

Description

@peanutfun

Attributes:

  • array: ensemble member (int)
  • array: lead time (datetime64)

Needs to support default empty initialization (arguments must default to None). Must be a "cooperative" Mixin class:

class Forecast:
    def __init__(self, lead_time = None, member = None, *args, **kwargs):
        super().__init__(*args, **kwargs)

With the current API, Forecast is no abstract base class and does not need to derive from ABC

Activity

  1. added theissue type on Dec 3, 2025
  2. peanutfun commented on Dec 8, 2025

    @peanutfun
    MemberAuthor

    Ugly things we don't want:

    HazardForecast(Forecast, Hazard):
    
    HazardForecast -> Forecast -> Hazard -> object
    
    def __init__():
        super(self, Hazard).__init__(...)
        super().__init__(...)
    
  3. added a commit that references this issue on Dec 8, 2025
    1688641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions