Skip to content

Commit b1bacbb

Browse files
author
Jeff Whitaker
authored
Merge pull request #668 from Unidata/v1.2.8rel
v1.2.8 release
2 parents e5a6711 + 6cf6784 commit b1bacbb

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

Changelog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
version 1.2.8 (not yet released)
2-
=================================
1+
version 1.2.8 (tag v1.2.8rel)
2+
==============================
33
* recognize _Unsigned attribute used by netcdf-java to designate unsigned
44
integer data stored with a signed integer type in netcdf-3 (issue #656).
55
* add Dataset init memory parameter to allow loading a file from memory
@@ -19,7 +19,7 @@
1919
dimension. chartostring and stringtochar now also have an 'encoding' kwarg.
2020
Automatic conversion to/from character to string arrays can be turned off
2121
via a new set_auto_chartostring Dataset and Variable method (default
22-
is True).
22+
is True). Addresses issue #654.
2323
* Cython >= 0.19 now required, _netCDF4.c and _netcdftime.c removed from
2424
repository.
2525

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,34 @@
88
## News
99
For the latest updates, see the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog).
1010

11+
6/1/2017: Version [1.2.8](https://github.com/Unidata/netcdf4-python/archive/v1.2.8rel.tar.gz) released. From Changelog:
12+
* recognize `_Unsigned` attribute used by [netcdf-java](http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/)
13+
to designate unsigned integer data stored with a signed integer type in netcdf-3
14+
[issue #656](https://github.com/Unidata/netcdf4-python/issues/656).
15+
* add Dataset init memory parameter to allow loading a file from memory
16+
[pull request #652](https://github.com/Unidata/netcdf4-python/pull/652),
17+
[issue #406](https://github.com/Unidata/netcdf4-python/issues/406) and
18+
[issue #295](https://github.com/Unidata/netcdf4-python/issues/295).
19+
* fix for negative times in num2date [issue #659](https://github.com/Unidata/netcdf4-python/pull/659).
20+
* fix for failing tests in numpy 1.13 due to changes in `numpy.ma`
21+
[issue #662](https://github.com/Unidata/netcdf4-python/issues/662).
22+
* Checking for `_Encoding` attribute for `NC_STRING` variables, otherwise use
23+
'utf-8'. 'utf-8' is used everywhere else, 'default_encoding' global module
24+
variable is no longer used. getncattr method now takes optional kwarg
25+
'encoding' (default 'utf-8') so encoding of attributes can be specified
26+
if desired. If `_Encoding` is specified for an `NC_CHAR` (`'S1'`) variable,
27+
the chartostring utility function is used to convert the array of
28+
characters to an array of strings with one less dimension (the last
29+
dimension is interpreted as the length of each string) when reading the
30+
data. When writing the data, stringtochar is used to convert a numpy
31+
array of fixed length strings to an array of characters with one more
32+
dimension. chartostring and stringtochar now also have an 'encoding' kwarg.
33+
Automatic conversion to/from character to string arrays can be turned off
34+
via a new `set_auto_chartostring` Dataset and Variable method (default
35+
is `True`). Addresses [issue #654](https://github.com/Unidata/netcdf4-python/issues/654)
36+
* [Cython](http://cython.org) >= 0.19 now required, `_netCDF4.c` and `_netcdftime.c` removed from
37+
repository.
38+
1139
1/8/2017: Version [1.2.7](https://pypi.python.org/pypi/netCDF4/1.2.7) released.
1240
Python 3.6 compatibility, and fix for vector missing_values.
1341

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ def getnetcdfvers(libdirs):
446446

447447
f.close()
448448
ext_modules = cythonize(extensions, include_path=['include'])
449+
else:
450+
ext_modules = None
449451

450452
setup(name = "netCDF4",
451453
cmdclass = cmdclass,

test/tst_Unsigned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Test_Unsigned(unittest.TestCase):
1313
See issue #656 (pull reqeust #658).
1414
"""
1515
def test_unsigned(self):
16-
f = netCDF4.Dataset("ubyte.nc3")
16+
f = netCDF4.Dataset("ubyte.nc")
1717
data = f['ub'][:]
1818
assert data.dtype.str[1:] == 'u1'
1919
assert_array_equal(data,np.array([0,255],np.uint8))
File renamed without changes.

0 commit comments

Comments
 (0)