Ignore:
Timestamp:
Feb 2, 2012, 1:08:40 PM (13 years ago)
Author:
pittj
Message:

metalog and ex1 merge added, code is now correct across all major experiments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/mem_time_tests/hardware/cairns/main.py

    r8326 r8328  
    2222file_path = os.path.join(scenariodir, file1)
    2323
    24 spamWriter = csv.writer(open(file_path, 'wb'))
    25 spamWriter.writerow(['Number Of Processors' , 'Space Used MB' , 'Time Taken s'])
     24firstex1 = open(file_path, 'wb')
     25spamWriter = csv.writer(firstex1)
     26spamWriter.writerow(['Number Of Processors' , 'Space Used MB' , 'Time Taken (s)'])
    2627
    2728
     
    4849print 'DONE'
    4950
    50 analyse_log(scenariodir, 'metalog.csv') # interrogate log files for the memory usage information
     51analyse_log(scenariodir, os.path.join(scenariodir,'metalog.csv')) #get the memory usage from the log files
     52
     53#close ex1.csv so we can read from it for a different csv reader object
     54firstex1.close()
     55
     56#merge the metalog useful memory info and the ex1 recorded info into one csv file named final
     57ex1 = csv.reader(open(file_path,'rb'))
     58metalog = csv.reader(open(meta_path,'rb'))
     59final = csv.writer(open(final_path,'wb'))
     60
     61
     62for row in ex1:
     63    d = metalog.next()
     64    final.writerow([row[0],row[1],d[0],d[3],d[6],d[9],d[12]])#,d[15],d[18]])
Note: See TracChangeset for help on using the changeset viewer.