How to use the lime.setSilent function in lime

To help you get started, we’ve selected a few lime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lime-rt / lime / casa / task_limesolver.py View on Github external
#  limepars.collPartMolWeights = [2.0159] # must be a list, even when there is only 1 item.
#  limepars.gridDensMaxValues = [1.0] # must be a list, even when there is only 1 item.
#  limepars.gridDensMaxLoc    = [[0.0,0.0,0.0]] # must be a list, each element of which is also a list with 3 entries (1 for each spatial coordinate).
  limepars.gridOutFiles      = ['','','','',gridOutFile]
  limepars.resetRNG          = resetRNG
  if limepars.moldatfile is None or limepars.moldatfile=='' or len(limepars.moldatfile)<=0:
    limepars.doSolveRTE = False
  else:
    limepars.doSolveRTE = True

  # Define an empty set of images:
  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: