def _suppress_warnings():
 import warnings
 import sys
 import os
 if (os.path.basename(sys.argv[0]) != 'trial'):
  warnings.simplefilter('ignore')

def _suppress_warnings ( ) : import warnings import sys import os if ( os . path . basename ( sys . argv [ 0 ] ) != 'trial' ) : warnings . simplefilter ( 'ignore' )
suppress warnings when not running under trial .