Skip to content

Commit dbcd123

Browse files
committed
IO: FASTOut: small fix for data with one timestamp
1 parent 82d8ac0 commit dbcd123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydatview/io/fast_output_file.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def toDataFrame(self):
173173
df= self.data
174174
df.columns=cols
175175
else:
176+
self.data = np.atleast_2d(self.data)
176177
if len(cols)!=self.data.shape[1]:
177-
raise BrokenFormatError('Inconstistent number of columns between headers ({}) and data ({}) for file {}'.format(len(cols), self.data.shape[1], self.filename))
178+
raise BrokenFormatError('Inconsistent number of columns between headers ({}) and data ({}) for file {}'.format(len(cols), self.data.shape[1], self.filename))
178179
df = pd.DataFrame(data=self.data,columns=cols)
179180

180181
return df

0 commit comments

Comments
 (0)