Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
alfoa committed Nov 12, 2020
1 parent 76f60d6 commit 0309ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def addRealization(self,rlz):
@ Out, None
"""
# realization must be a dictionary
assert(type(rlz).__name__ == "dict")
assert(type(rlz).__name__ in ["dict","defaultdict"])
# prefix must be present
if 'prefix' not in rlz:
rlz['prefix'] = len(self.database)
Expand Down

0 comments on commit 0309ee9

Please sign in to comment.