diff options
| author | J08nY | 2021-11-27 16:09:27 +0100 |
|---|---|---|
| committer | J08nY | 2021-11-27 16:09:27 +0100 |
| commit | 4c0dd490280c88a54ab7e493907dfb5e8b8eefbf (patch) | |
| tree | 13529b50b9768bd9c82584fa5685f1f1e77db262 /test/plots/plot_perf.py | |
| parent | 69f6a0bd10d76d72da799bb22132e8555bc13dd3 (diff) | |
| download | pyecsca-4c0dd490280c88a54ab7e493907dfb5e8b8eefbf.tar.gz pyecsca-4c0dd490280c88a54ab7e493907dfb5e8b8eefbf.tar.zst pyecsca-4c0dd490280c88a54ab7e493907dfb5e8b8eefbf.zip | |
Diffstat (limited to 'test/plots/plot_perf.py')
| -rw-r--r-- | test/plots/plot_perf.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/plots/plot_perf.py b/test/plots/plot_perf.py index 7054543..631ef07 100644 --- a/test/plots/plot_perf.py +++ b/test/plots/plot_perf.py @@ -13,13 +13,19 @@ import numpy as np type=click.Path(file_okay=False, dir_okay=True), default=None, envvar="DIR", - required=True + required=True, ) def main(directory): directory = Path(directory) for f in directory.glob("*.csv"): pname = str(f).removesuffix(".csv") - d = np.genfromtxt(f, delimiter=",", dtype=None, encoding="ascii", names=("commit", "pyversion", "time")) + d = np.genfromtxt( + f, + delimiter=",", + dtype=None, + encoding="ascii", + names=("commit", "pyversion", "time"), + ) if len(d.shape) == 0: d.shape = (1,) line = hv.Curve(zip(d["commit"], d["time"]), "commit", "duration") |
