fix argparse stuff to pass to infer_potential