Download scripts/make_main_figures.py from SparseWake/sparsewake: direct link, hf CLI and curl.
- Browser
- Download file 659 Bytes
-
https://huggingface.co/datasets/SparseWake/sparsewake/resolve/4bf428f931dbe5364fd322d691d96d4fbeb3f6fb/scripts/make_main_figures.py
- Command line
-
hf download hf://datasets/SparseWake/sparsewake@4bf428f931dbe5364fd322d691d96d4fbeb3f6fb/scripts/make_main_figures.py
-
curl -L -o make_main_figures.py https://huggingface.co/datasets/SparseWake/sparsewake/resolve/4bf428f931dbe5364fd322d691d96d4fbeb3f6fb/scripts/make_main_figures.py
659 Bytes
| 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() | |