Skip to content

Commit

Permalink
Merge pull request #925 from Unidata/v1.5.1.2rel
Browse files Browse the repository at this point in the history
prepare for 1.5.1.2 release
  • Loading branch information
jswhit authored May 6, 2019
2 parents f7bd1d2 + a3c233e commit ca240ca
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
since version 1.5.1.1
==============================
version 1.5.1.2 (tag v1.5.1.2rel)
==================================
* fix another slicing bug introduced by the fix to issue #906 (issue #922).

version 1.5.1.1 (tag v1.5.1.1rel)
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
## News
For details on the latest updates, see the [Changelog](https://github.com/Unidata/netcdf4-python/blob/master/Changelog).

05/06/2019: Version [1.5.1.2](https://pypi.python.org/pypi/netCDF4/1.5.1.2) released. Fixes another slicing
slicing regression ([issue #922)](https://github.com/Unidata/netcdf4-python/issues/922)) introduced in the 1.5.1 release.

05/02/2019: Version [1.5.1.1](https://pypi.python.org/pypi/netCDF4/1.5.1.1) released. Fixes incorrect `__version__`
module variable in 1.5.1 release, plus a slicing bug ([issue #919)](https://github.com/Unidata/netcdf4-python/issues/919)).

Expand Down
4 changes: 2 additions & 2 deletions docs/netCDF4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />

<title>netCDF4 API documentation</title>
<meta name="description" content="Version 1.5.1.1
<meta name="description" content="Version 1.5.1.2
---------------
- - -
Expand Down Expand Up @@ -1280,7 +1280,7 @@ <h1>Index</h1>

<header id="section-intro">
<h1 class="title"><span class="name">netCDF4</span> module</h1>
<h2>Version 1.5.1.1</h2>
<h2>Version 1.5.1.2</h2>
<hr />
<h1>Introduction</h1>
<p>netcdf4-python is a Python interface to the netCDF C library.</p>
Expand Down
4 changes: 2 additions & 2 deletions netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Version 1.5.1.1
Version 1.5.1.2
---------------
- - -
Expand Down Expand Up @@ -1190,7 +1190,7 @@ except ImportError:
# python3: zip is already python2's itertools.izip
pass

__version__ = "1.5.1.1"
__version__ = "1.5.1.2"

# Initialize numpy
import posixpath
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def _populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs):

setup(name="netCDF4",
cmdclass=cmdclass,
version="1.5.1.1",
version="1.5.1.2",
long_description="netCDF version 4 has many features not found in earlier versions of the library, such as hierarchical groups, zlib compression, multiple unlimited dimensions, and new data types. It is implemented on top of HDF5. This module implements most of the new features, and can read and write netCDF files compatible with older versions of the library. The API is modelled after Scientific.IO.NetCDF, and should be familiar to users of that module.\n\nThis project is hosted on a `GitHub repository <https://github.com/Unidata/netcdf4-python>`_ where you may access the most up-to-date source.",
author="Jeff Whitaker",
author_email="[email protected]",
Expand Down
14 changes: 14 additions & 0 deletions test/tst_slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,19 @@ def test_issue919(self):
f['v1'][:] = arr
assert_array_equal(f['v1'][:],np.broadcast_to(arr,f['v1'].shape))

def test_issue922(self):
with Dataset(self.file,'w') as f:
f.createDimension('d1',3)
f.createDimension('d2',None)
f.createVariable('v1',np.int,('d2','d1',))
f['v1'][0] = np.arange(3,dtype=np.int)
f['v1'][1:3] = np.arange(3,dtype=np.int)
assert_array_equal(f['v1'][:], np.broadcast_to(np.arange(3),(3,3)))
f.createVariable('v2',np.int,('d1','d2',))
f['v2'][:,0] = np.arange(3,dtype=np.int)
f['v2'][:,1:3] = np.arange(6,dtype=np.int).reshape(3,2)
assert_array_equal(f['v2'][:,1:3],np.arange(6,dtype=np.int).reshape(3,2))
assert_array_equal(f['v2'][:,0],np.arange(3,dtype=np.int))

if __name__ == '__main__':
unittest.main()

0 comments on commit ca240ca

Please sign in to comment.