|
84 | 84 | "metadata": {}, |
85 | 85 | "outputs": [], |
86 | 86 | "source": [ |
87 | | - "#!pico install /path/to/simlammps" |
| 87 | + "# if you are running the tutorial online using Binder, then the simlammps\n", |
| 88 | + "# ontology is already pre-installed\n", |
| 89 | + "\n", |
| 90 | + "# otherwise, download `simlammps.ttl` and `simlammps.yml` from \n", |
| 91 | + "# https://github.com/simphony/simlammps/tree/v4.0.0/simphony_osp_simlammps\n", |
| 92 | + "# and run\n", |
| 93 | + "\n", |
| 94 | + "#!pico install simlammps.yml" |
88 | 95 | ] |
89 | 96 | }, |
90 | 97 | { |
|
425 | 432 | } |
426 | 433 | ], |
427 | 434 | "source": [ |
428 | | - "from simphony_osp.wrappers import SimLammps\n", |
| 435 | + "from simphony_osp.wrappers import SimLAMMPS\n", |
429 | 436 | "\n", |
430 | 437 | "# open the SQLite database and create a new SimLAMMPS session\n", |
431 | 438 | "sqlite_session = SQLite('atoms.db', create=False)\n", |
432 | | - "simlammps_session = SimLammps()\n", |
| 439 | + "simlammps_session = SimLAMMPS()\n", |
433 | 440 | "\n", |
434 | 441 | "# prevent closing the sessions when leaving the contexts after \n", |
435 | 442 | "# using the `with` statement\n", |
436 | | - "sqlite_session.locked = True, simlammps_session.locked = True\n", |
| 443 | + "sqlite_session.locked = True\n", |
| 444 | + "simlammps_session.locked = True\n", |
437 | 445 | "\n", |
438 | 446 | "# copy the individuals from the SQLite session to the SimLAMMPS session\n", |
439 | 447 | "ontology_individuals_from_database = list(sqlite_session)\n", |
|
582 | 590 | ], |
583 | 591 | "metadata": { |
584 | 592 | "kernelspec": { |
585 | | - "display_name": "Python 3", |
| 593 | + "display_name": "Python 3 (ipykernel)", |
586 | 594 | "language": "python", |
587 | 595 | "name": "python3" |
588 | 596 | }, |
|
596 | 604 | "name": "python", |
597 | 605 | "nbconvert_exporter": "python", |
598 | 606 | "pygments_lexer": "ipython3", |
599 | | - "version": "3.8.12" |
| 607 | + "version": "3.10.7" |
600 | 608 | } |
601 | 609 | }, |
602 | 610 | "nbformat": 4, |
|
0 commit comments