mrghg / py12box_invert

MIT License
3 stars 0 forks source link

Fix for numerical error when padding obs #6

Closed lukewestern closed 3 years ago

lukewestern commented 3 years ago

Similar to an earlier bug. End time was being included in np.arange() when padding due to numerical rounding. Fix is to just minus 1e-8.

It wasn't affecting tests as seemed to occur when obs weren't in whole years. Was introduced with fixes for tests.

Tests pass etc.