Changeset 6c58850 for doc/theses/mike_brooks_MMath/plots/ListCommon.py
- Timestamp:
- Aug 12, 2025, 12:44:35 AM (6 weeks ago)
- Branches:
- master
- Children:
- 7f995d70
- Parents:
- 81e1984b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/plots/ListCommon.py
r81e1984b r6c58850 7 7 import sys 8 8 import os 9 9 from subprocess import Popen, PIPE 10 10 11 11 def getSingleResults(infileLocal, *, … … 17 17 infile = os.path.dirname(os.path.abspath(__file__)) + '/../benchmarks/list/' + infileLocal 18 18 19 timings = pd.read_csv( 20 infile, 21 names=['RunMoment', 'RunIdx', 'Args', 'Program', 'expt_ops_completed', 'expt_elapsed_sec', 'mean_op_dur_ns'], 22 dtype={'RunMoment': str, 23 'RunIdx': np.int64, 24 'Args': str, 25 'Program': str, 26 'expt_ops_completed': np.int64, 27 'expt_elapsed_sec': np.float64, 28 'mean_op_dur_ns': np.float64}, 29 parse_dates=['RunMoment'] 30 ) 31 #print(timings.head()) 19 # grep to remove lines that end in comma; these were error runs 20 with Popen("grep '[^,]$' " + infile, shell=True, stdout=PIPE) as process: 21 timings = pd.read_csv( 22 process.stdout, 23 names=['RunMoment', 'RunIdx', 'Args', 'Program', 'expt_ops_completed', 'expt_elapsed_sec', 'mean_op_dur_ns'], 24 dtype={'RunMoment': str, 25 'RunIdx': np.int64, 26 'Args': str, 27 'Program': str, 28 'expt_ops_completed': np.int64, 29 'expt_elapsed_sec': np.float64, 30 'mean_op_dur_ns': np.float64}, 31 parse_dates=['RunMoment'] 32 ) 33 # print(timings.head()) 32 34 33 35 ## parse executable name and args
Note:
See TracChangeset
for help on using the changeset viewer.