You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the nanosecond resolution, the lower and upper bounds on dates are 1677-09-21 and 2262-04-11 (e.g. here). timedate.apply_year_offset adds the constant TimeManager.YEAROFFSET, which is currently set to 1899, if the inputted datetime.datetime object starts before the minimum year.
This causes an overflow and a Pandas OutOfBoundsDatetime error if any of the inputted years are greater than 2262-1899=363, because then the start year exceeds the 2262 bound:
@spencerkclark, what if, rather than applying a constant offset, we just directly set the start year to be 1678? The catch is then retaining the original year values. But looking through the code and remembering our most recent conversation (although I can't find it on GH), right now we aren't even bothering to change the years back anyways...am I remembering that right?
The text was updated successfully, but these errors were encountered:
We should design things such that one can use the full valid Pandas window, regardless of the start date of the analysis. You are correct that we currently do not convert dates back to their original values (see #94).
Obviously this still doesn't solve the issue of how to handle time ranges greater than 585 years; that's a tricky one, but perhaps if it came to it, we could think about some way to systematically break the long time range into manageable chunks, perform some operation on each chunk, and bring the chunks back together for some final reduction. This seems complicated, but I'm not sure if there is an easier alternative.
Due to the nanosecond resolution, the lower and upper bounds on dates are 1677-09-21 and 2262-04-11 (e.g. here).
timedate.apply_year_offset
adds the constantTimeManager.YEAROFFSET
, which is currently set to 1899, if the inputteddatetime.datetime
object starts before the minimum year.This causes an overflow and a Pandas
OutOfBoundsDatetime
error if any of the inputted years are greater than 2262-1899=363, because then the start year exceeds the 2262 bound:@spencerkclark, what if, rather than applying a constant offset, we just directly set the start year to be 1678? The catch is then retaining the original year values. But looking through the code and remembering our most recent conversation (although I can't find it on GH), right now we aren't even bothering to change the years back anyways...am I remembering that right?
The text was updated successfully, but these errors were encountered: