mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 01:15:34 +00:00
Use array.item() instead of np.asscalar()
This commit is contained in:
@@ -327,8 +327,7 @@ class MPRfile:
|
||||
maybe_log_module = [m for m in modules if m['shortname'] == b'VMP LOG ']
|
||||
|
||||
n_data_points = np.frombuffer(data_module['data'][:4], dtype='<u4')
|
||||
n_columns = np.frombuffer(data_module['data'][4:5], dtype='u1')
|
||||
n_columns = np.asscalar(n_columns) # Compatibility with recent numpy
|
||||
n_columns = np.frombuffer(data_module['data'][4:5], dtype='u1').item()
|
||||
|
||||
if data_module['version'] == 0:
|
||||
column_types = np.frombuffer(data_module['data'][5:], dtype='u1',
|
||||
|
||||
Reference in New Issue
Block a user