Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if limeStatus.statusRayTracing==0:
if nItersCounted<=0:
if limeStatus.statusGridBuilding==0:
pass
elif not gridDoneMessageIsPrinted:
gridDoneMessageIsPrinted = True
casalog.post('Grid is complete. Starting solution.')
if nItersCounted
images = []
limeLog = LimeExistentialLog()
lime.setSilent(False)
# Run LIME in its own thread:
limeThread = LimeThread(limepars, images, limeLog)
limeThread.start()
casalog.post('Starting limesolver LIME run.')
# Loop with delay - every so often, check LIME status and print it to the casa logger.
while not limeLog.complete:
time.sleep(sleepSec)
limeStatus = lime.getStatus()
if limeStatus.error!=0:
break
if limeStatus.statusGlobal!=0:
casalog.post('LIME run is complete.')
break
if limeStatus.statusRayTracing==0:
if nItersCounted<=0:
if limeStatus.statusGridBuilding==0:
pass
elif not gridDoneMessageIsPrinted:
gridDoneMessageIsPrinted = True
casalog.post('Grid is complete. Starting solution.')