Commit 3912634d authored by William Clarke's avatar William Clarke
Browse files

Update jmrui text file reading.

parent 5cf9b23b
......@@ -44,7 +44,10 @@ def readjMRUItxt(filename,unpack_header=True):
continue
if recordData:
data.append(list(map(float,line.split())))
curr_data = line.split()
if len(curr_data) > 2:
curr_data = curr_data[:2]
data.append(list(map(float, curr_data)))
# Reshape data
data = np.concatenate([np.array(i) for i in data])
......@@ -53,7 +56,7 @@ def readjMRUItxt(filename,unpack_header=True):
# Clean up header
header = translateHeader(header)
return data,header
return data, header
# Translate jMRUI header to mandatory fields
def translateHeader(header):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment