def local():
    parser = ArgumentParser(
        description='Debug a python script with a graphical interface.',
    )

    parser.add_argument(
        "-p", "--port",
        metavar='PORT',
        help="Port number to use for debugger communications (default=3742)",
        action="store",
        type=int,
        default=3742,
        dest="port"
    )

    parser.add_argument(
        'filename',
        metavar='script.py',
        help='The script to debug.'
    )
    parser.add_argument(
        'args', nargs=argparse.REMAINDER,
        help='Arguments to pass to the script you are debugging.'
    )

    options = parser.parse_args()

    # Start the program to be debugged
    proc = subprocess.Popen(
        ["bugjar-net", options.filename] + options.args,
        stdin=None,
        stdout=None,
        stderr=None,
        shell=False,
        bufsize=1,
        close_fds='posix' in sys.builtin_module_names
    )
    # Pause, ever so briefly, so that the net can be established.
    time.sleep(0.1)

    # Create a connection to the debugger instance
    debugger = Debugger('localhost', options.port, proc=proc)

    # Run the debugger
    jar_run(debugger)
Calculate sound power level according to ISO 3746:2010.
dataset/ETHPy150Open pybee/bugjar/bugjar/main.py/local--crossover with--dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/power.py/lw_iso3746