Skip to content

Commit

Permalink
Remove assert
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Aug 25, 2023
1 parent 5ffb2ab commit 8e650e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stanio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"stan_variables",
]

__version__ = "0.3.0"
__version__ = "0.3.1"
4 changes: 2 additions & 2 deletions stanio/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def read_csv(filenames: Union[str, List[str]]) -> Tuple[str, npt.NDArray[np.floa
pass
if header == "":
header = file_header
else:
assert header == file_header, "Headers do not match"
elif header != file_header:
raise ValueError("Headers do not match")
data[i] = np.loadtxt(fd, delimiter=",", comments="#")

return header.strip(), np.stack(data, axis=0)

0 comments on commit 8e650e5

Please sign in to comment.