bin/us-plot: fix usage message
This commit is contained in:
parent
d9f340dce6
commit
8c548da2e0
27
bin/us-plot
27
bin/us-plot
@ -7,7 +7,20 @@ sys.path.insert(0, str(Path(__file__).absolute().parents[1]))
|
||||
from frappy.client.interactive import Client
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
from frappy.iqplot import Pause
|
||||
from frappy_psi.iqplot import Pause
|
||||
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("""
|
||||
Usage:
|
||||
|
||||
us-plot <end> [<start> [<npoints>]]
|
||||
|
||||
end: end of window [ns]
|
||||
start: start of window [n2], default: 0
|
||||
npoints: number fo points (default 1000)
|
||||
""")
|
||||
sys.exit(0)
|
||||
|
||||
Client('pc13252:5000')
|
||||
|
||||
@ -24,18 +37,6 @@ def update(array, line, xs):
|
||||
def on_close(event):
|
||||
sys.exit(0)
|
||||
|
||||
# inp_signal.read()
|
||||
# out_signal.read()
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("""
|
||||
Usage: python3 sig.py <end> [<start> [<npoints>]]
|
||||
|
||||
end: end of window [ns]
|
||||
start: start of window [n2], default: 0
|
||||
npoints: number fo points (default 1000)
|
||||
""")
|
||||
else:
|
||||
start = 0
|
||||
end = float(sys.argv[1])
|
||||
npoints = 1000
|
||||
|
Loading…
x
Reference in New Issue
Block a user