304-fitparameter #305
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user