|
322 | 322 | "dct = periodic_nearest_neighbors_by_atom(u, # Universe with all frames from which we want to extract clusters\n", |
323 | 323 | " \"Rh\", # Source atom from which we will search for neighbors\n", |
324 | 324 | " a, # Cubic cell dimension\n", |
325 | | - " # Cluster sizes we want (increasing the number here doesn't change how long the function takes)\n", |
| 325 | + " # Cluster sizes we want\n", |
326 | 326 | " [0, 1, 2, 3, 4, 8, 12, 16],\n", |
327 | 327 | " # Additional arguments to be passed to the atomic two body calculation\n", |
328 | 328 | " # Note that it is critical to increase dmax (in compute_atom_two)!!!\n", |
|
451 | 451 | "metadata": {}, |
452 | 452 | "outputs": [], |
453 | 453 | "source": [ |
454 | | - "exatomic.UniverseWidget(dct[8])" |
455 | | - ] |
456 | | - }, |
457 | | - { |
458 | | - "cell_type": "code", |
459 | | - "execution_count": 18, |
460 | | - "metadata": {}, |
461 | | - "outputs": [ |
462 | | - { |
463 | | - "data": { |
464 | | - "application/vnd.jupyter.widget-view+json": { |
465 | | - "model_id": "a6affab55b674876b30baaca3aa1b092", |
466 | | - "version_major": 2, |
467 | | - "version_minor": 0 |
468 | | - }, |
469 | | - "text/plain": [ |
470 | | - "UniverseWidget(active_scene_indices=[0], children=(GUIBox(children=(Button(description=' Close', icon='trash',…" |
471 | | - ] |
472 | | - }, |
473 | | - "metadata": {}, |
474 | | - "output_type": "display_data" |
475 | | - } |
476 | | - ], |
477 | | - "source": [ |
478 | | - "exatomic.UniverseWidget(dct[16])" |
| 454 | + "exatomic.UniverseWidget(dct[0]) # Just the analyte" |
479 | 455 | ] |
480 | 456 | }, |
481 | 457 | { |
482 | 458 | "cell_type": "code", |
483 | 459 | "execution_count": null, |
484 | 460 | "metadata": {}, |
485 | 461 | "outputs": [], |
486 | | - "source": [] |
| 462 | + "source": [ |
| 463 | + "exatomic.UniverseWidget(dct[16]) # View the universe with 16 nearest molecules" |
| 464 | + ] |
487 | 465 | }, |
488 | 466 | { |
489 | 467 | "cell_type": "markdown", |
|
494 | 472 | }, |
495 | 473 | { |
496 | 474 | "cell_type": "code", |
497 | | - "execution_count": 8, |
| 475 | + "execution_count": 15, |
498 | 476 | "metadata": {}, |
499 | 477 | "outputs": [ |
500 | 478 | { |
501 | 479 | "name": "stdout", |
502 | 480 | "output_type": "stream", |
503 | 481 | "text": [ |
504 | | - "CPU times: user 20.9 s, sys: 3.75 s, total: 24.6 s\n", |
505 | | - "Wall time: 24.9 s\n" |
| 482 | + "CPU times: user 3.17 s, sys: 281 ms, total: 3.45 s\n", |
| 483 | + "Wall time: 3.51 s\n" |
506 | 484 | ] |
507 | 485 | } |
508 | 486 | ], |
|
514 | 492 | }, |
515 | 493 | { |
516 | 494 | "cell_type": "code", |
517 | | - "execution_count": 9, |
| 495 | + "execution_count": 16, |
518 | 496 | "metadata": {}, |
519 | 497 | "outputs": [ |
520 | 498 | { |
521 | 499 | "data": { |
522 | 500 | "text/plain": [ |
523 | | - "86.07053661346436" |
| 501 | + "10.53761100769043" |
524 | 502 | ] |
525 | 503 | }, |
526 | | - "execution_count": 9, |
| 504 | + "execution_count": 16, |
527 | 505 | "metadata": {}, |
528 | 506 | "output_type": "execute_result" |
529 | 507 | } |
|
532 | 510 | "u.memory_usage().sum()/1024**2 # RAM usage (MB)" |
533 | 511 | ] |
534 | 512 | }, |
535 | | - { |
536 | | - "cell_type": "markdown", |
537 | | - "metadata": {}, |
538 | | - "source": [] |
539 | | - }, |
540 | 513 | { |
541 | 514 | "cell_type": "code", |
542 | 515 | "execution_count": null, |
543 | 516 | "metadata": {}, |
544 | 517 | "outputs": [], |
545 | | - "source": [] |
| 518 | + "source": [ |
| 519 | + "exatomic.UniverseWidget(u)" |
| 520 | + ] |
546 | 521 | }, |
547 | 522 | { |
548 | 523 | "cell_type": "code", |
|
0 commit comments