| 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() |
|
|
|
|