We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e3a93 commit b3b58d6Copy full SHA for b3b58d6
neo/core/regionofinterest.py
@@ -28,7 +28,8 @@ def _get_obj(self):
28
return self.image_sequence
29
30
def _set_obj(self, value):
31
- assert isinstance(value, ImageSequence)
+ if not isinstance(value, ImageSequence):
32
+ raise TypeError(f"Value must be ImageSequence, not of type: {type(value)}")
33
self.image_sequence = value
34
35
obj = property(fget=_get_obj, fset=_set_obj)
0 commit comments