Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Aug 30, 2023
1 parent 9b26064 commit 969e390
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion droplets/emulsions.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ def data(self) -> np.ndarray:
return np.empty(0, dtype=self.dtype)
else:
raise RuntimeError(
"Cannot create data array since dtype is not specified and no "
"Cannot create data array since the emulsion is empty and an "
"explicit dtype has not been specified."
)

else:
Expand Down

0 comments on commit 969e390

Please sign in to comment.