Core Init

Some constants and basic functions with wide uses.

iceprod.core.to_file(stream=None, file='out')[source]

redirect a stream (like stdout) to regular file

Parameters:
  • stream – previous file object

  • file – new file object

iceprod.core.to_log(stream=None, prefix='', level='info')[source]

redirect a stream (like stdout) to log file

Parameters:
  • stream – file object

  • prefix – logging prefix

  • level – logging level