diff options
| author | KunoiSayami <[email protected]> | 2023-06-12 00:51:30 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-06-12 00:51:30 +0800 |
| commit | e7de21daf6c674633ef1159c2fd042523c1ec32e (patch) | |
| tree | e9fea9b2611fb832898900e7fb698e8a1a4c28f3 /expt_0702.py | |
| parent | 5f38ca067108eea5a8c334bd8cbe5866300d585c (diff) | |
refector: Rename last year experimental
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0702.py')
| -rwxr-xr-x | expt_0702.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/expt_0702.py b/expt_0702.py deleted file mode 100755 index 5ac42b0..0000000 --- a/expt_0702.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -import argparse -import os -import subprocess - -import matplotlib.pyplot as plt - - -def function_pdf(proc: str): - p = subprocess.Popen([proc], stdin=subprocess.PIPE, stdout=subprocess.PIPE) - output, _ = p.communicate(b"1024 1024\n32768 1024\n32768 32768\n") - p.stdin.close() - for index in range(0, len(lines := output.splitlines()), 2): - plt.hist(list(map(int, lines[index].split())), bins=100) - plt.title(f"stddev: {lines[index + 1].decode()}") - plt.show() - - -if __name__ == '__main__': - parser = argparse.ArgumentParser() - parser.add_argument('proc') - matches = parser.parse_args() - function_pdf(matches.proc) |
