Skip to content

Commit 166a476

Browse files
committed
Merge branch 'master' of https://github.com/aranzgeo/omf
2 parents 33dcdbe + 90d400b commit 166a476

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

.pypirc.enc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
�������;�4�g�s��t�\�<��fO�ЋY��}�7�s�][k�����Pt���̓
2+
ĥ�-��ll�ڶ��^2r��=�s%ͬ����UE3��

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ script:
2424

2525
after_success:
2626
- bash <(curl -s https://codecov.io/bash)
27+
- openssl aes-256-cbc -K $encrypted_de81f81dc49e_key -iv $encrypted_de81f81dc49e_iv -in .pypirc.enc -out ~/.pypirc -d
2728
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" -a $TRAVIS_PYTHON_VERSION == "2.7" -a -n "$(grep version setup.py | cut -d \' -f 2 | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$')" ]; then
2829
make publish;
2930
fi
3031
- if [ "$TRAVIS_BRANCH" = "beta" -a "$TRAVIS_PULL_REQUEST" = "false" -a $TRAVIS_PYTHON_VERSION == "2.7" -a -n "$(grep version setup.py | cut -d \' -f 2 | grep -E '^[0-9]+\.[0-9]+\.[0-9]+b[0-9]+$')" ]; then
3132
make publish;
3233
fi
34+
35+
notifications:
36+
email: false

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Connections
5959

6060
This library makes use of the `properties <https://github.com/3ptscience/properties>`_
6161
open-source project, which is designed and publicly supported by
62-
`3point Science <https://3ptscience.com>`_, an
62+
`3point Science <https://www.3ptscience.com>`_, an
6363
`ARANZ Geo Limited <http://www.aranzgeo.com>`_ company.
6464

6565
Installation

omf/serializers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
import zlib
99

1010
import numpy as np
11+
from six import PY2
1112

13+
if PY2:
14+
memoryview = buffer #pylint: disable=redefined-builtin, invalid-name, undefined-variable
1215

1316
def array_serializer(arr, open_file, **kwargs): #pylint: disable=unused-argument
1417
"""Convert array data to a serialized binary format"""
@@ -34,7 +37,7 @@ def array_serializer(arr, open_file, **kwargs): #
3437
index = dict()
3538
index['start'] = open_file.tell()
3639
index['dtype'] = dtype
37-
arr_buffer = np.getbuffer(arr.astype(dtype))
40+
arr_buffer = memoryview(arr.astype(dtype))
3841
open_file.write(zlib.compress(arr_buffer))
3942
index['length'] = open_file.tell() - index['start']
4043
return index

0 commit comments

Comments
 (0)