Skip to content
Snippets Groups Projects
Commit a5ecb2b0 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

improved SensorInstrument.__eq__(self, other) by checking type of "other" first

parent fda5e3ec
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,8 @@ class SensorInstrument(QObject):
self.wavelengthUnits is not None
def __eq__(self, other):
if not isinstance(other, SensorInstrument):
return False
return self.nb == other.nb and \
self.px_size_x == other.px_size_x and \
self.px_size_y == other.px_size_y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment