Skip to content

Commit

Permalink
Merge pull request #86 from Unidata/v1.0.3rel
Browse files Browse the repository at this point in the history
update for 1.0.3 release
  • Loading branch information
jswhit authored Dec 1, 2018
2 parents a93a172 + 0172e98 commit 979c8b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ 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, 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
order of magnitude faster. `months since` units now allowed, but only for `360_day` calendar.
Expand Down
2 changes: 1 addition & 1 deletion cftime/_cftime.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 979c8b3

Please sign in to comment.