cli, skeleton

This commit is contained in:
0xFugue 2023-08-16 12:42:41 +05:30
parent ad86cd0495
commit 05be6761c6

37
scripts/analysis.py Normal file
View File

@ -0,0 +1,37 @@
import typer
import logging as log
from pathlib import Path
def read_csv(sim_dfile):
df=None
return df
def write_csv(df):
pass
def plot_vtimes(df, oprefix=""):
pass
def compute_vtimes(df):
pass
def main(ctx: typer.Context,
config_file: Path = typer.Option("config.json",
exists=True, file_okay=True, readable=True,
help="Set the config file"),
data_file: Path = typer.Option("simout.csv",
exists=True, file_okay=True, readable=True,
help="Set the simulation data file"),
oprefix: str = typer.Option("output",
help="Set the output prefix for the plots"),
debug: bool = typer.Option(True,
help="Set debug")
):
log.info(config_file, data_file, oprefix, debug)
if __name__ == "__main__":
typer.run(main)