Skip to content

Commit

Permalink
fix stopcode=7 (Zero mask) trap
Browse files Browse the repository at this point in the history
  • Loading branch information
schiebel committed Jan 9, 2024
1 parent 194b45f commit 49278a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casagui/apps/_interactiveclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ async def clean_handler( msg, self=self ):
iteration_limit = int(msg['value']['niter'])
stopdesc, stopcode, majordone, majorleft, iterleft, self._convergence_data = await self._clean.__anext__( )

if len(self._convergence_data['chan']) == 0 and stopcode == 7 or stopcode == -1:
if len(self._convergence_data['chan']) == 0 or stopcode == 7 or stopcode == -1:
### stopcode == -1 indicates an error condition within gclean
return dict( result='error', stopcode=stopcode, cmd=self._clean.cmds( ),
convergence=None, majordone=majordone,
Expand Down

0 comments on commit 49278a4

Please sign in to comment.