Skip to content

Commit

Permalink
fix consistency check in database creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mtezzele committed Jul 14, 2020
1 parent 97ef06a commit d23856a
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 @@ -71,9 +71,9 @@ def __len__(self):

def add(self, parameters, snapshots):
"""
TO DOC
"""

if len(parameters) is not len(snapshots):
if len(parameters) != len(snapshots):
raise RuntimeError('Different number of parameters and snapshots.')

if self._parameters is None and self._snapshots is None:
Expand Down

0 comments on commit d23856a

Please sign in to comment.