File size: 659 Bytes
e45abdb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | from __future__ import annotations
import argparse
from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT / "src"))
from sparsewake.plotting import plot_history_sensor_noise, plot_self_signal
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("--results", required=True)
parser.add_argument("--out", required=True)
args = parser.parse_args()
results = Path(args.results)
out = Path(args.out)
plot_history_sensor_noise(results, out)
plot_self_signal(results, out)
print(f"Wrote main figures to {out}")
if __name__ == "__main__":
main()
|