Skip to content

Specifying start/end day and length of a target/precursor period #3

Description

@BSchilperoort

In @Peter9192's review of AI4S2S/s2spy#113, he voiced his desire to be able to specify target and precursor periods by the end date and length;

e.g. if I want to issue a forecast by the end of may, I want to start appending precursors from 31 may backwards.

However, this leads to some non-trivial issues like:

  • How do we deal with leap years? As the periods are unaware (yet) of which year they will belong to, we do not know if it is a leap year or not. A "simple" solution is to just ignore leap days.

  • How do we determine which year the date specifies?

    • E.g., if the anchor is June 1st, and you specify an end date of June 5th, does this mean 4 days after or 361 days before the anchor. Does the (default) behavior depend on target=True/target=False?
    • And what if someone wants to define a date two years ahead of the anchor?

And lastly, do we want to support start_date, end_date, and length, and have the user use 2/3 to define the period?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions