Example #1
0
def main():

    system = create_system()

    uri = get_server_uri()
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(1000)
def main():
    parser = argparse.ArgumentParser(description="connect worker queue")
    parser.add_argument("p", type=int, help="p-spin")
    parser.add_argument("nspins", type=int, help="number of spins")
    parser.add_argument("--nsteps", type=int, help="number of basin hopping steps", default=1000)
    args = parser.parse_args()

    nspins = args.nspins
    p = args.p

    interactions = get_database_params_worker(nspins, p)
    system = create_system(nspins, p, interactions)

    uri = get_server_uri(nspins, p)
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(args.nsteps)
def main():
    parser = argparse.ArgumentParser(description="connect worker queue")
    parser.add_argument("p", type=int, help="p-spin")
    parser.add_argument("nspins", type=int, help="number of spins")
    parser.add_argument("--nsteps",
                        type=int,
                        help="number of basin hopping steps",
                        default=1000)
    args = parser.parse_args()

    nspins = args.nspins
    p = args.p

    interactions = get_database_params_worker(nspins, p)
    system = create_system(nspins, p, interactions)

    uri = get_server_uri(nspins, p)
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(args.nsteps)
Example #4
0
def main():
    parser = argparse.ArgumentParser(description="connect worker queue")
    parser.add_argument("p", type=int, help="p-spin")
    parser.add_argument("nspins", type=int, help="number of spins")
    parser.add_argument("--nsteps",
                        type=int,
                        help="number of basin hopping steps",
                        default=1000)
    args = parser.parse_args()

    nspins = args.nspins
    p = args.p

    dbname = "pspin_spherical_p{}_N{}.sqlite".format(p, nspins)
    interactions = get_database_params_worker(dbname, nspins, p)
    system = create_system(nspins, p, interactions)

    fname = 'server_uri_pspin_spherical_p{}_N{}.uri'.format(p, nspins)
    uri = get_server_uri(fname, nspins, p)
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(args.nsteps)
Example #5
0
def main():
    system = create_system()

    uri = get_server_uri()
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(1000)
Example #6
0
def start_basinhopping(create_system, uri, niter=1000):
    system = create_system()
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(nsteps=niter)
Example #7
0
def start_basinhopping(create_system, uri, niter=1000):
    system = create_system()
    worker = BasinhoppingWorker(uri, system=system)
    worker.run(nsteps=niter)