Skip to content

Commit 27eef7a

Browse files
authored
Merge pull request #372 from ax3l/fix-pyStrides2d
Python: Relax Strides Further
2 parents ac4fb31 + 797033f commit 27eef7a

File tree

7 files changed

+10
-14
lines changed

7 files changed

+10
-14
lines changed

CHANGELOG.rst

+4-8
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,19 @@ Changelog
55

66
0.6.2-alpha
77
-----------
8-
**Date:** TBA
8+
**Date:** 2018-09-25
99

10-
[Title]
10+
Python Stride: Regression
1111

12-
[Summary]
12+
A regression in the last fix for python strides made the relaxation not efficient for 2-D and higher.
1313

1414
Changes to "0.6.1-alpha"
1515
^^^^^^^^^^^^^^^^^^^^^^^^
1616

17-
Features
18-
""""""""
19-
2017
Bug Fixes
2118
"""""""""
2219

23-
Other
24-
"""""
20+
- Python: relax strides further
2521

2622

2723
0.6.1-alpha

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
cmake_minimum_required(VERSION 3.10.0)
44

5-
project(openPMD VERSION 0.6.1) # LANGUAGES CXX
5+
project(openPMD VERSION 0.6.2) # LANGUAGES CXX
66

77
# the openPMD "markup"/"schema" standard version
88
set(openPMD_STANDARD_VERSION 1.1.0)

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
# The short X.Y version.
8181
version = u'0.6.2'
8282
# The full version, including alpha/beta/rc tags.
83-
release = u'0.6.2-dev'
83+
release = u'0.6.2-alpha'
8484

8585
# The language for content autogenerated by Sphinx. Refer to documentation
8686
# for a list of supported languages.

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The supported version of the `openPMD standard <https://github.com/openPMD/openP
3838
======================= ===================================
3939
openPMD-api version supported openPMD standard versions
4040
======================= ===================================
41-
``0.1.0-0.6.1`` (alpha) ``1.0.0-1.1.0``
41+
``0.1.0-0.6.2`` (alpha) ``1.0.0-1.1.0``
4242
``1.0.0+`` ``1.0.1-1.1.0`` (not released yet)
4343
``2.0.0+`` ``2.0.0+`` (not released yet)
4444
======================= ===================================

include/openPMD/version.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define OPENPMDAPI_VERSION_MAJOR 0
2525
#define OPENPMDAPI_VERSION_MINOR 6
2626
#define OPENPMDAPI_VERSION_PATCH 2
27-
#define OPENPMDAPI_VERSION_LABEL "dev"
27+
#define OPENPMDAPI_VERSION_LABEL "alpha"
2828

2929
// maximum supported version of the openPMD standard (read & write)
3030
#define OPENPMD_STANDARD_MAJOR 1

src/binding/python/Attributable.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ bool setAttributeFromBufferInfo(
128128
{
129129
if( buf.ndim == 1u && buf.strides[0] > buf.shape[0] * buf.itemsize )
130130
; // ok in 1D
131-
else if( buf.strides[0] == buf.itemsize )
131+
else if( buf.strides[d] == buf.itemsize )
132132
; // ok to stride on an element level
133133
else
134134
throw std::runtime_error("set_attribute: "

src/binding/python/RecordComponent.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void init_RecordComponent(py::module &m) {
243243
{
244244
if( a.ndim() == 1u && a.strides()[0] > a.shape()[0] * a.itemsize() )
245245
; // ok in 1D
246-
else if( a.strides()[0] == a.itemsize() )
246+
else if( a.strides()[d] == a.itemsize() )
247247
; // ok to stride on an element level
248248
else
249249
throw std::runtime_error("store_chunk: "

0 commit comments

Comments
 (0)