Skip to content

Commit

Permalink
Remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
javerbukh committed Jul 10, 2024
1 parent 927f993 commit 11c73a9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions jdaviz/configs/cubeviz/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,15 @@ def data(self, cls=None):
isinstance(layer_state.layer, BaseData)]

def start_stream(self):
if hasattr(self, 'stream') and self.stream:
if self.stream:
self.stream.start()
else:
print("unable to start stream")

def stop_stream(self):
if hasattr(self, 'stream') and self.stream:
if self.stream:
self.stream.stop()
else:
print("unable to stop stream")

def update_cube(self, x, y):
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'):
print("cube not initialized")
if not self.audified_cube or not hasattr(self.audified_cube, 'newsig') or not hasattr(self.audified_cube, 'sigcube'):
return
self.audified_cube.newsig = self.audified_cube.sigcube[:, x, y]
self.audified_cube.cbuff = True
Expand Down

0 comments on commit 11c73a9

Please sign in to comment.