From 94bf0b3a55eeefe2080aad303000c039e5035503 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Thu, 8 Apr 2021 10:31:43 +0200 Subject: [PATCH] replaced file extention of cpu table to ease editing tsv is more explicit than dat (which could be anything), this allows syntax colouring --- concho/config.py | 2 +- concho/procs_chooser.py | 2 +- cpu_table.dat => cpu_table.tsv | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename cpu_table.dat => cpu_table.tsv (100%) diff --git a/concho/config.py b/concho/config.py index 440bf54..78cf33a 100644 --- a/concho/config.py +++ b/concho/config.py @@ -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: diff --git a/concho/procs_chooser.py b/concho/procs_chooser.py index b7d3658..9e70a39 100644 --- a/concho/procs_chooser.py +++ b/concho/procs_chooser.py @@ -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)) diff --git a/cpu_table.dat b/cpu_table.tsv similarity index 100% rename from cpu_table.dat rename to cpu_table.tsv