functions.py 359 B

12345678910111213141516171819
  1. # main imports
  2. import random
  3. # module imports
  4. from .. import config as cfg
  5. def uniqueID():
  6. '''
  7. Return unique identifier for current user and
  8. '''
  9. return str(random.uniform(0, 1))[2:15]
  10. def write_header_expe(f, expe_name):
  11. '''
  12. Write specific header into file
  13. '''
  14. f.write(cfg.expes_configuration[expe_name]['output_header'])