mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 17:15:36 +00:00
Merge pull request #10 from chatcannon/fix-numpy-1.12
Fix numpy 1.12 TypeError
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,6 +18,7 @@ develop-eggs
|
|||||||
lib
|
lib
|
||||||
lib64
|
lib64
|
||||||
__pycache__
|
__pycache__
|
||||||
|
.cache
|
||||||
|
|
||||||
# Installer logs
|
# Installer logs
|
||||||
pip-log.txt
|
pip-log.txt
|
||||||
|
|||||||
@@ -287,6 +287,7 @@ class MPRfile:
|
|||||||
|
|
||||||
n_data_points = np.fromstring(data_module['data'][:4], dtype='<u4')
|
n_data_points = np.fromstring(data_module['data'][:4], dtype='<u4')
|
||||||
n_columns = np.fromstring(data_module['data'][4:5], dtype='u1')
|
n_columns = np.fromstring(data_module['data'][4:5], dtype='u1')
|
||||||
|
n_columns = np.asscalar(n_columns) # Compatibility with recent numpy
|
||||||
|
|
||||||
if data_module['version'] == 0:
|
if data_module['version'] == 0:
|
||||||
column_types = np.fromstring(data_module['data'][5:], dtype='u1',
|
column_types = np.fromstring(data_module['data'][5:], dtype='u1',
|
||||||
|
|||||||
Reference in New Issue
Block a user