argparse fix

This commit is contained in:
Sakimori 2025-07-21 17:06:40 -04:00
parent bcbdf32d37
commit 9df75456ad
No known key found for this signature in database

View file

@ -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))