Debian Codegraph @

Changelog

raw
1 version 1.6.5 (release tag v1.6.5rel)
2 =====================================
3 * python 3.14 wheels, 3.8/3.9 support dropped.
4 * roundtrip not correct when dates are all python datetime
5 instances and calendar not proleptic_gregorian (issue #354).
6 * fix cftime.datetime.strftime so it works with two digit year
7 formatting (%y, issue #362).
8 * speed up comparisions (using __richcmp___) and update docs. Issue #365.
9
10 version 1.6.4 (release tag v1.6.4rel)
11 =====================================
12 * build aarch64 linux wheels (issue #333).
13 * build musllinux wheels (issue #307).
14 * return empty array if one provided to date2num (issue #315).
15 * numpy 2.0 compatibility (issue #325).
16 * handle nan/inf in num2date (issue #328).
17
18 version 1.6.3 (release tag v1.6.3rel)
19 =====================================
20 * add support for formats without separators in strptime (e.g. '20200229', issue #301).
21 This required removing support for > 4 digit years.
22 * set the c_api_binop_methods compiler directive to True to retain Cython 0.x
23 behavior for arithmetic operators for Cython >= 3.0.0 (issue #271).
24 * support for python 3.12.
25
26 version 1.6.2 (release tag v1.6.2rel)
27 =====================================
28 * num2date should not fail on an empty integer array (issue #287).
29 * longdouble keyword in date2num so that a roundtrip from a time to a date
30 and back again does not lose microsecond precision when the units require
31 the times be encoded as floating point values (PR #284)
32 * added strptime method (issue #277).
33 * cibuildwheel wheel-building workflow added to github actions by @ocefpaf (triggers binary
34 wheel builds and uploads to pypi automatically when GH release created). PR #290.
35
36 version 1.6.1 (release tag v1.6.1rel)
37 =====================================
38 * fix failing tests on windows with numpy 1.23.0 (issue #278)
39 * expose to_tuple module function in public API.
40
41 version 1.6.0 (release tag v1.6.0rel)
42 =====================================
43 * fix for masked array inputs (issue #267).
44 * improved performance of the num2date algorithm, in some cases providing
45 an over 100x speedup (issue #269, PR#270).
46 * fix for date2index for select != 'exact' when select='exact' works (issue
47 #272, PR#273)
48
49 version 1.5.2 (release tag v1.5.2rel)
50 =====================================
51 * silently change calendar='gregorian' to 'standard' internally,
52 since 'gregorian' deprecated in CF v1.9 (issue #256).
53 * add "is_leap_year" function (issue #259).
54 * wheels that work on Apple M1 (arm64) available on pypi.
55
56 version 1.5.1.1
57 ===============
58 * no code changes, just new binary wheels for python 3.10.
59
60 version 1.5.1 (release tag v1.5.1.rel)
61 ======================================
62 * added support for "common_year" and "common_years" units for "noleap"
63 and "365_day" calendars (issue #5, PR #246)
64 * check consistency of year arg and has_year_zero kwarg in cftime.datetime
65 (issue #248). Also assume if has_year_zero not specified it should be True
66 if year=0. Allow replace method to change has_year_zero. Issue UserWarning
67 if year set to zero and calendar default is changed from False to True
68 (so that user is aware the resulting instance will not be CF compliant).
69 * '360_day' was missing from list of 'idealized' calendars.
70 * fixed a bug that led to subclasses losing their type identity upon
71 pickling (issue #251, PR #252).
72 * Change default behavior of proleptic_gregorian to has_year_zero=T
73 (to be consistent with ISO-8601 since CF does not specify the year zero convention
74 for this calendar). Issue warning when trying to
75 to create a cftime.datetime instance that is not allowed in CF (PR #238).
76
77 version 1.5.0 (release tag v1.5.0.rel)
78 ======================================
79 * clean-up deprecated calendar specific subclasses (PR #231).
80 * added string formatting support to `cftime.datetime` objects
81 (via `cftime.datetime.__format__`) PR #232.
82 * add support for astronomical year numbering (including year zero) for
83 real-world calendars using 'has_year_zero' cftime.datetime kwarg (PR #234).
84 Default is False for 'real-world' calendars ('julian', 'gregorian'/'standard',
85 'proleptic_gregorian'). Ignored for idealized calendars like '360_day
86 (they always have year zero).
87 * add "change_calendar" cftime.datetime method to switch to another
88 'real-world' calendar. Enable comparison of cftime.datetime instances
89 with different 'real-world' calendars (using the new change_calendar method)
90 * remove legacy `utime` class, and legacy `JulianDayFromDate` and
91 `DateFromJulianDay` functions (replaced by `cftime.datetime.toordinal`
92 and `cftime.datetime.fromordinal`). PR #235.
93 * Change ValueError to TypeError in __sub__ (issue #236, PR #236).
94
95 version 1.4.1 (release tag v1.4.1.rel)
96 ======================================
97 * Restore use of calendar-specific sub-classes in `cftime.num2date`,
98 `cftime.datetime.__add__`, and `cftime.datetime.__sub__`. The use of them
99 will be removed in a later release.
100 * add 'fromordinal' static method to create a cftime.datetime instance
101 from a julian day ordinal and calendar (inverse of 'toordinal').
102
103 version 1.4.0 (release tag v1.4.0.rel)
104 ======================================
105 * `cftime.date2num` will now always return an array of integers, if the units
106 and times allow. Previously this would only be true if the units were
107 'microseconds' (PR #225). In other circumstances, as before, `cftime.date2num`
108 will return an array of floats.
109 * Rewrite of julian day/calendar functions (_IntJulianDayToCalendar and
110 _IntJulianDayFromCalendar) to remove GPL'ed code. cftime license
111 changed to MIT (to be consistent with netcdf4-python).
112 * Added datetime.toordinal() (returns julian day, kwarg 'fractional'
113 can be used to include fractional day).
114 * cftime.datetime no longer uses calendar-specific sub-classes.
115
116 version 1.3.1 (release tag v1.3.1rel)
117 =====================================
118 * fix for issue #211 (PR #212) bug in masked array handling in date2num)
119 * switch from travis/appveyor to github actions for CI/CD (PR #215).
120 * switch to cython language_level=3 (no more support for python 2) (PR #217).
121 * add __init__.py to test dir so pytest coverage works again. Add Coveralls
122 step to github actions workflow to upload coverage data to coveralls.io (PR
123 #217).
124 * move package under 'src' directory so cftime can be imported
125 from install dir (PR #218 - see
126 https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure).
127
128 version 1.3.0 (release tag v1.3.0rel)
129 =====================================
130 * zero pad years in strtime (issue #194)
131 * have cftime.datetime constructor create 'calendar-aware' instances (default is
132 'standard' calendar, if calendar='' or None the instance is not calendar aware and some
133 methods, like dayofwk, dayofyr, __add__ and __sub__, will not work). Fixes issue #198.
134 The calendar specific sub-classes are now deprecated, but remain for now
135 as stubs that just instantiate the base class and override __repr__.
136 * update regex in _cpdef _parse_date so reference years with more than four
137 digits can be handled.
138 * Change default calendar in cftime.date2num from 'standard' to None
139 (calendar associated with first input datetime object is used).
140 * add `cftime.datetime.tzinfo=None` for compatibility with python datetime
141 (issue #208).
142
143 version 1.2.1 (release tag v1.2.1rel)
144 =====================================
145 * num2date uses 'proleptic_gregorian' scheme when basedate is post-Gregorian but date is pre-Gregorian
146 (issue #182).
147 * fix 1.2.0 regression (date2num no longer works with numpy scalar array inputs, issue #185).
148 * Fix for issue #187 (have date2num round to the nearest second when within 1
149 microsecond).
150 * Fix for issue #189 (leap years calculated incorrectly for negative years in
151 proleptic_gregorian calendar).
152
153 version 1.2.0 (release tag v1.2.0rel)
154 =====================================
155 * Return the default values of dayofwk and dayofyr when calendar
156 is '' (issue #173).
157 * fix treatment of masked arrays in num2date and date2num (issue #175).
158 Also make sure masked arrays are output from num2date/date2num if
159 masked arrays are input.
160 * Where possible, use timedelta arithmetic to decode times exactly within
161 num2date (issue #171).
162 * Make taking the difference between two cftime datetimes to produce a
163 timedelta exact to the microsecond; depending on the units encoding,
164 this enables date2num to be exact as well (issue #109).
165 * utime.date2num/utime.num2date now just call module level functions.
166 JulianDayFromDate/DateFromJulianDay no longer used internally (PR #180).
167
168 version 1.1.3 (release tag v1.1.3rel)
169 =====================================
170 * add isoformat method for compatibility with python datetime (issue #152).
171 * make 'standard' default calendar for cftime.datetime
172 so that dayofwk,dayofyr methods don't fail (issue #169).
173
174 version 1.1.2 (release tag v1.1.2rel)
175 =====================================
176 * change dayofwk and dayofyr attributes into properties (issue #158)
177 * fix for issue #165 (python datetime should be returned when
178 only_use_cftime_datetimes=False).
179
180 version 1.1.1.2 (release tag v1.1.1.2rel)
181 =========================================
182 * include pyproject.toml in MANIFEST.in so it gets
183 included in source tarball (issue #154).
184
185 version 1.1.1.1 (release tag v1.1.1.1rel)
186 =========================================
187 * Fix error installing with pip on python 3.8 by following
188 PEP 517 (issue #148, PR #149)
189
190 version 1.1.1 (release tag v1.1.1rel)
191 =====================================
192 * fix microsecond formatting issue, ensure identical results
193 computed for arrays and scales (issue #143, PR #146).
194
195 version 1.1.0 (release tag v1.1.0rel)
196 =====================================
197 * improved exceptions for time differences (issue #128, PR #131).
198 * fix intersphinx entries (issue #133, PR #133)
199 * make only_use_cftime_datetimes=True by default, so cftime datetime
200 instances are returned by default by num2date (instead of returning python
201 datetime instances where possible). Issue #136, PR #135.
202 * Add daysinmonth attribute (issue #137, PR #138).
203 * If only_use_python_datetimes=True and only_use_cftime_datetimes=False,
204 num2date only returns python datetime instances and raises an exception
205 if this is not possible. num2pydate convenience function added which just calls
206 num2date with only_use_python_datetimes=True and
207 only_use_cftime_datetimes=False.
208 Remove positive times check, raise ValueError if python datetime
209 tries to compute a date before MINYEAR (issue #134, PR #139)
210 * Fix for fractional seconds in reference date in units string (issue #140,
211 PR # 141).
212
213 version 1.0.4.2 release
214 =======================
215 * fix for issue #126 (date2num error when converting a DatetimeProlepticGregorian
216 object). PR #127.