fixed size read bug and added tests
This commit is contained in:
@ -40,4 +40,21 @@ with open(path/'37frames_with_5_clusters.clust', 'wb') as f:
|
||||
data['data'] = np.arange(j,j+9)
|
||||
print(data)
|
||||
data.tofile(f)
|
||||
|
||||
|
||||
#Writing out data to test noise cuts
|
||||
header[1] = 7
|
||||
|
||||
with open(path/'noise_test.clust', 'wb') as f:
|
||||
for i in range(10):
|
||||
data['x'] = 50
|
||||
data['y'] = 133
|
||||
data['data'][:] = 50
|
||||
|
||||
header.tofile(f)
|
||||
print(header)
|
||||
header[0] += 1
|
||||
|
||||
for j in range(7):
|
||||
print(data)
|
||||
data.tofile(f)
|
||||
data['x'] += 10
|
Reference in New Issue
Block a user