Skip to content

Commit 3a8fe3b

Browse files
author
Raimondas Galvelis
committed
More clean up
1 parent 73bfbcc commit 3a8fe3b

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

tutorials/openmm-torch-nnpops.ipynb

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,9 @@
104104
{
105105
"cell_type": "code",
106106
"metadata": {
107-
"colab": {
108-
"base_uri": "https://localhost:8080/"
109-
},
110-
"id": "zNng_d4mGKve",
111-
"outputId": "218e0775-766b-4597-9d48-96e3d65df374"
107+
"id": "zNng_d4mGKve"
112108
},
113-
"outputs": [
114-
{
115-
"name": "stderr",
116-
"output_type": "stream",
117-
"text": [
118-
"Warning: importing 'simtk.openmm' is deprecated. Import 'openmm' instead.\n"
119-
]
120-
}
121-
],
109+
"outputs": [],
122110
"source": [
123111
"import openmmtools\n",
124112
"\n",
@@ -152,32 +140,16 @@
152140
"cell_type": "code",
153141
"metadata": {
154142
"id": "ofemZo6sIbLU",
155-
"outputId": "4181fcb6-db72-47e7-edb5-2a4bb0252de7"
143+
"outputId": "9604e005-80ed-4553-eada-fc73f032b653"
156144
},
157145
"outputs": [
158146
{
159-
"name": "stderr",
160147
"output_type": "stream",
161-
"text": [
162-
"/usr/local/lib/python3.7/site-packages/torchani/__init__.py:55: UserWarning: Dependency not satisfied, torchani.ase will not be available\n",
163-
" warnings.warn(\"Dependency not satisfied, torchani.ase will not be available\")\n"
164-
]
165-
},
166-
{
167148
"name": "stdout",
168-
"output_type": "stream",
169149
"text": [
170150
"/usr/local/lib/python3.7/site-packages/torchani/resources/\n",
171151
"Downloading ANI model parameters ...\n"
172152
]
173-
},
174-
{
175-
"name": "stderr",
176-
"output_type": "stream",
177-
"text": [
178-
"/usr/local/lib/python3.7/site-packages/torch/functional.py:1069: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /home/conda/feedstock_root/build_artifacts/pytorch-recipe_1640851336451/work/aten/src/ATen/native/TensorShape.cpp:2156.)\n",
179-
" return _VF.cartesian_prod(tensors) # type: ignore[attr-defined]\n"
180-
]
181153
}
182154
],
183155
"source": [
@@ -204,7 +176,7 @@
204176
"\n",
205177
" # Prepare the positions\n",
206178
" positions = positions.unsqueeze(0).float() * 10 # nm --> Å\n",
207-
" \n",
179+
"\n",
208180
" # Run ANI-2x\n",
209181
" result = self.model((self.atomic_numbers, positions))\n",
210182
" \n",
@@ -230,12 +202,12 @@
230202
"cell_type": "code",
231203
"metadata": {
232204
"id": "D42I_L9r-Krj",
233-
"outputId": "c1738d48-71e2-40ea-9965-d9dbd2147406"
205+
"outputId": "0fb1e3f7-3042-401d-bca3-7ffb4b313739"
234206
},
235207
"outputs": [
236208
{
237-
"name": "stdout",
238209
"output_type": "stream",
210+
"name": "stdout",
239211
"text": [
240212
"-1301523.8702643516\n"
241213
]

0 commit comments

Comments
 (0)