Skip to content
Snippets Groups Projects
Commit 5ae341dc authored by Lan Dam's avatar Lan Dam
Browse files

fix error 'To change to a dtype of a different size, the array must be C-contiguous' in python 3.7

parent 3e07b4b3
No related branches found
No related tags found
1 merge request!152intergrate rt130
Pipeline #2829 failed with stage
in 3 minutes
This commit is part of merge request !152. Comments created here will be created in the context of that merge request.
......@@ -197,7 +197,7 @@ class Reftek130(obspy_rt130_core.Reftek130):
# numbers (namely, appending a negative number with 1s
# does not change its value), we do not have to care
# about the actual encoding type of the stored packets.
sample_data = np.asarray(packets_['payload'][:, :4])
sample_data = np.ascontiguousarray(packets_['payload'][:, :4])
sample_data = sample_data.view(np.dtype('>i4'))
sample_data = sample_data.squeeze(axis=-1)
npts = sample_data.size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment