replaced file extention of cpu table to ease editing
tsv is more explicit than dat (which could be anything), this allows syntax colouring
This commit is contained in:
		
							parent
							
								
									0f4ca51534
								
							
						
					
					
						commit
						94bf0b3a55
					
				|  | @ -36,7 +36,7 @@ class Cpu(Item): | |||
| 
 | ||||
|     def __init__(self, proc_id): | ||||
|         super().__init__(proc_id) | ||||
|         cpuTable = numpy.genfromtxt('cpu_table.dat', dtype=("|U32", float, int, float, float, float), names=True, delimiter='\t') | ||||
|         cpuTable = numpy.genfromtxt('cpu_table.tsv', dtype=("|U32", float, int, float, float, float), names=True, delimiter='\t') | ||||
|         for cpu_id, clock, num_cores, tdp, cpumark in zip(cpuTable['id'], cpuTable['clock'], cpuTable['num_cores'], cpuTable['tdp'], cpuTable['cpumark_1_cpu']): | ||||
|             # print(cpu_id) | ||||
|             if cpu_id == proc_id: | ||||
|  |  | |||
|  | @ -25,7 +25,7 @@ def get_marker(proc_id): | |||
|     return markerTypes[ hash % len(markerTypes) ] | ||||
| 
 | ||||
| def plotCpuPassmark(): | ||||
|     cpuTable = numpy.genfromtxt('cpu_table.dat', dtype=("|U10", float, int, float, float), names=True, delimiter='\t') | ||||
|     cpuTable = numpy.genfromtxt('cpu_table.tsv', dtype=("|U10", float, int, float, float), names=True, delimiter='\t') | ||||
|     plt.subplot(1,1,0) | ||||
|     plt.subplots_adjust(bottom = 0.1) | ||||
|     markersCycler = itertools.cycle(itertools.product(markerTypes, markerColors)) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue