We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97c9ef8 commit 8b37adbCopy full SHA for 8b37adb
1 file changed
cmdstanpy/utils/stancsv.py
@@ -75,9 +75,12 @@ def csv_bytes_list_to_numpy(
75
skiprows=int(includes_header),
76
delimiter=",",
77
dtype=np.float32,
78
+ ndmin=1,
79
)
80
if out.shape == (0,):
81
raise ValueError("No data found to parse") from exc
82
+ if len(out.shape) == 1:
83
+ out = out.reshape(1, -1)
84
85
# Telling the type checker we know the type is correct
86
return cast(npt.NDArray[np.float32], out)
0 commit comments