From 7a90dab1e4d2023f4999684cdcdad69186f2bac2 Mon Sep 17 00:00:00 2001 From: Jeff Whitaker Date: Fri, 30 Nov 2018 09:42:50 -0700 Subject: [PATCH 1/3] update for 1.0.3 release --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b7167bbf..7bda09a0 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ Time-handling functionality from netcdf4-python [![Coverage Status](https://coveralls.io/repos/github/Unidata/cftime/badge.svg?branch=master)](https://coveralls.io/github/Unidata/cftime?branch=master) ## News +12/01/2018: version 1.0.3 released. Test coverage with coveralls.io, `months_since` now enabled for `360_day` calendar. +Improved round-tripping accuracy. + 10/27/2018: version 1.0.2 released. Improved accuracy (from approximately 1000 microseconds to 10 microseconds on x86 platforms). Refactored calendar calculations now allow for negative reference years. num2date function now more than an order of magnitude faster. `months since` units now allowed, but only for `360_day` calendar. From 743dff523ab238b3d2c2179753d6cb89de8c5e19 Mon Sep 17 00:00:00 2001 From: Jeff Whitaker Date: Fri, 30 Nov 2018 09:54:47 -0700 Subject: [PATCH 2/3] fix bug that was causing test/benchmark.py to fail. --- cftime/_cftime.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cftime/_cftime.pyx b/cftime/_cftime.pyx index 4136a699..b15ecd08 100644 --- a/cftime/_cftime.pyx +++ b/cftime/_cftime.pyx @@ -503,7 +503,7 @@ def DateFromJulianDay(JD, calendar='standard', only_use_cftime_datetimes=False, microsecond = np.where(microsecond < ms_eps, 0, microsecond) indxms = microsecond > 1000000-ms_eps if indxms.any(): - julian[indxms] = julian[indxms] + 2*ms_eps/86400000000. + julian[indxms] = julian[indxms] + 2*ms_eps[indxms]/86400000000. year,month,day,hour,minute,second,microsecond,dayofyr,dayofwk,ind_before =\ getdateinfo(julian) microsecond[indxms] = 0 From 0172e98df939058c0faf2a9148ca03f86ca19e06 Mon Sep 17 00:00:00 2001 From: Jeff Whitaker Date: Fri, 30 Nov 2018 14:03:23 -0700 Subject: [PATCH 3/3] update --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bda09a0..aaa20fa6 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,7 @@ Time-handling functionality from netcdf4-python [![Coverage Status](https://coveralls.io/repos/github/Unidata/cftime/badge.svg?branch=master)](https://coveralls.io/github/Unidata/cftime?branch=master) ## News -12/01/2018: version 1.0.3 released. Test coverage with coveralls.io, `months_since` now enabled for `360_day` calendar. -Improved round-tripping accuracy. +12/01/2018: version 1.0.3 released. Test coverage with coveralls.io, improved round-tripping accuracy for non-real world calendars (like `360_day`). 10/27/2018: version 1.0.2 released. Improved accuracy (from approximately 1000 microseconds to 10 microseconds on x86 platforms). Refactored calendar calculations now allow for negative reference years. num2date function now more than an