Skip to content

Commit 11c73a9

Browse files
committed
Remove print statements
1 parent 927f993 commit 11c73a9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

jdaviz/configs/cubeviz/plugins/viewers.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,15 @@ def data(self, cls=None):
232232
isinstance(layer_state.layer, BaseData)]
233233

234234
def start_stream(self):
235-
if hasattr(self, 'stream') and self.stream:
235+
if self.stream:
236236
self.stream.start()
237-
else:
238-
print("unable to start stream")
239237

240238
def stop_stream(self):
241-
if hasattr(self, 'stream') and self.stream:
239+
if self.stream:
242240
self.stream.stop()
243-
else:
244-
print("unable to stop stream")
245241

246242
def update_cube(self, x, y):
247-
if not hasattr(self, 'audified_cube') or not self.audified_cube or not hasattr(self.audified_cube, 'newsig') or not hasattr(self.audified_cube, 'sigcube'):
248-
print("cube not initialized")
243+
if not self.audified_cube or not hasattr(self.audified_cube, 'newsig') or not hasattr(self.audified_cube, 'sigcube'):
249244
return
250245
self.audified_cube.newsig = self.audified_cube.sigcube[:, x, y]
251246
self.audified_cube.cbuff = True

0 commit comments

Comments
 (0)