Skip to content

Commit

Permalink
Make ReturnDataView.status return int (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl authored Jan 16, 2023
1 parent 6e44a70 commit 0c776eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/sdist/amici/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,13 @@ def __getitem__(self, item: str) -> Union[np.ndarray, ReturnDataPtr,
:returns: self[item]
"""
if item == 'status':
return int(super().__getitem__(item))

if item == 't':
item = 'ts'
return super(ReturnDataView, self).__getitem__(item)

return super().__getitem__(item)

def by_id(
self,
Expand Down

0 comments on commit 0c776eb

Please sign in to comment.