Skip to content

Commit

Permalink
Revert "Update data_classes.py (#265)"
Browse files Browse the repository at this point in the history
This reverts commit 795c26a.
  • Loading branch information
psauvan authored Aug 6, 2024
1 parent 795c26a commit 6100283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/geouned/GEOUNED/utils/data_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,12 @@ def voidMat(self, voidMat: list):
self._voidMat = voidMat
else:
if not isinstance(voidMat[0], int):
raise TypeError(f"first entry of geouned.Settings.voidMat should be an int, not a {type(voidMat[0])}")
raise TypeError(f"first entry of geouned.Settings.voidMat should be an int, not a {type(entry)}")
if not isinstance(voidMat[1], int):
if not isinstance(voidMat[1], float):
raise TypeError(f"second entry of geouned.Settings.voidMat should be an int or float, not a {type(voidMat[1])}")
raise TypeError(f"second entry of geouned.Settings.voidMat should be an int or float, not a {type(entry)}")
if not isinstance(voidMat[2], str):
raise TypeError(f"third entry of geouned.Settings.voidMat should be a str, not a {type(voidMat[2])}")
raise TypeError(f"third entry of geouned.Settings.voidMat should be a str, not a {type(entry)}")
self._voidMat = voidMat

@property
Expand Down

0 comments on commit 6100283

Please sign in to comment.