From 79a424c4bd773e182089290a85e20971957d99f5 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 31 May 2023 17:21:56 +0200 Subject: [PATCH] fix mismatched indexes between data and labels in asciireader --- src/nmreval/io/asciireader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nmreval/io/asciireader.py b/src/nmreval/io/asciireader.py index 28ddbf8..62ed70f 100644 --- a/src/nmreval/io/asciireader.py +++ b/src/nmreval/io/asciireader.py @@ -156,7 +156,7 @@ class AsciiReader: for j in range(1, num_y+1, stepsize): if col_names is not None: # predefined name - kwargs['name'] = col_names[j] + kwargs['name'] = col_names[j-1] elif num_y > single_len: # more than one axis, append column number kwargs['name'] = filename + '_' + str(y[j-1])