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?
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;
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?
target=True/target=False?And lastly, do we want to support
start_date,end_date, andlength, and have the user use 2/3 to define the period?