maybe single line ascii is read correctly

This commit is contained in:
Dominik Demuth 2025-01-23 19:02:12 +01:00
parent ee82298bf3
commit 8fd73ce487

View File

@ -146,10 +146,11 @@ class AsciiReader:
raw_data = raw_data.reshape((1, *raw_data.shape))
if len(x) == 0 or raw_data.shape[2] == 1:
_temp = np.zeros((raw_data.shape[0], raw_data.shape[1], raw_data.shape[2]+1))
_temp[:, :, 0] = np.arange(raw_data.shape[1])
_temp[:, :, 1:] = raw_data
raw_data = _temp
raw_data = raw_data.reshape(raw_data.shape[0], raw_data.shape[2], raw_data.shape[1])
# _temp = np.zeros((raw_data.shape[0], raw_data.shape[2], raw_data.shape[1]))
# _temp[:, :, 0] = np.arange(raw_data.shape[1])
# _temp[:, :, 1:] = raw_data
# raw_data = _temp
if y:
y = [i+1 for i in y]