Skip to content

Commit e92417e

Browse files
committed
refactor
1 parent 32ab2fa commit e92417e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/inverter_example.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
# Set plotly backend to be plotly, you might have to install plotly
99
pd.options.plotting.backend = "plotly"
1010

11-
app = typer.Typer()
12-
13-
@app.command()
1411
def main(save_outputs: bool = typer.Option(False, "--save-outputs", help="Save outputs to CSV")):
1512
timestamp = datetime.now().timestamp()
1613
timestamp_str = datetime.fromtimestamp(timestamp, tz=timezone.utc).strftime('%Y-%m-%d %H:%M:%S')
@@ -56,4 +53,4 @@ def main(save_outputs: bool = typer.Option(False, "--save-outputs", help="Save o
5653
fig.show(renderer="browser")
5754

5855
if __name__ == "__main__":
59-
app()
56+
typer.run(main)

0 commit comments

Comments
 (0)