argparse fix
This commit is contained in:
parent
bcbdf32d37
commit
9df75456ad
|
@ -172,7 +172,7 @@ if __name__ == "__main__":
|
||||||
"-n", "--nsamp", type=int, help="Number of samples to take of the generated pulse."
|
"-n", "--nsamp", type=int, help="Number of samples to take of the generated pulse."
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-p", "--plot", type=bool, help="Just plot file and quit."
|
"-p", "--plot", action="store_true", help="Just plot file and quit."
|
||||||
)
|
)
|
||||||
parser.set_defaults(dm=250.0)
|
parser.set_defaults(dm=250.0)
|
||||||
parser.set_defaults(nsamp=int(3e4))
|
parser.set_defaults(nsamp=int(3e4))
|
||||||
|
|
Loading…
Reference in a new issue