From 8fd73ce48721ab91cb9d6c71f22598823d7bd8cd Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Thu, 23 Jan 2025 19:02:12 +0100 Subject: [PATCH] maybe single line ascii is read correctly --- src/nmreval/io/asciireader.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/nmreval/io/asciireader.py b/src/nmreval/io/asciireader.py index da5ffd7..ccbb0f7 100644 --- a/src/nmreval/io/asciireader.py +++ b/src/nmreval/io/asciireader.py @@ -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]