Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ndem0 authored Feb 7, 2024
1 parent cb35c19 commit 80e88dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ezyrb/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def split(self, chunks, seed=None):
"""
if all(isinstance(n, int) for n in chunks):
if sum(chunks) != len(self):
raise ValueError('chunk elements are incosistent')
raise ValueError('chunk elements are inconsistent')

ids = [
j for j, chunk in enumerate(chunks)
Expand All @@ -116,7 +116,7 @@ def split(self, chunks, seed=None):

elif all(isinstance(n, float) for n in chunks):
if not np.isclose(sum(chunks), 1.):
raise ValueError('chunk elements are incosistent')
raise ValueError('chunk elements are inconsistent')

cum_chunks = np.cumsum(chunks)
cum_chunks = np.insert(cum_chunks, 0, 0.0)
Expand Down

0 comments on commit 80e88dd

Please sign in to comment.