Skip to content

Commit

Permalink
fix cursor tracking failure with "specmode='mfs'" (fixes #28)
Browse files Browse the repository at this point in the history
  • Loading branch information
schiebel committed Jan 25, 2024
1 parent 96f9bb9 commit 5226131
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion casagui/toolbox/_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,12 @@ def _init_pipes( self ):
cube_on( )
} } )''' ) )
if self._pipe['control'] is None:
self._pipe['control'] = DataPipe(address=find_ws_address( ), abort=self.__abort)
### self._pipe['control']._freeze_cursor_update is used to keep track of whether pixel
### update has been "frozen" (by typing 'f')... for "specmode='mfs'" _freeze_cursor_update
### was undefined which resulted in failure to update pixel tracking... so it is now
### initialized upon construction in JavaScript...
self._pipe['control'] = DataPipe( address=find_ws_address( ), abort=self.__abort,
init_script=CustomJS( code='''cb_obj._freeze_cursor_update = false''' ) )

def path( self ):
'''return path to CASA image
Expand Down

0 comments on commit 5226131

Please sign in to comment.