Commit e3ba15e5 authored by Simon Conseil's avatar Simon Conseil

Fix syntax warnings

parent e6322ace
Pipeline #3842 passed with stages
in 11 minutes and 35 seconds
......@@ -903,7 +903,7 @@ class DataArray:
wave = None
# Handle cube[]
elif item is None or item is ():
elif item is None or item == ():
try:
wcs = self.wcs.copy()
except Exception:
......@@ -948,7 +948,7 @@ class DataArray:
reshape = (1, data.shape[0])
# Handle image[]
elif item is None or item is ():
elif item is None or item == ():
try:
wcs = self.wcs.copy()
except Exception:
......@@ -965,7 +965,7 @@ class DataArray:
wave = None
# Handle spectrum[]
elif item is None or item is ():
elif item is None or item == ():
try:
wave = self.wave.copy()
except Exception:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment