|
104 | 104 | { |
105 | 105 | "cell_type": "code", |
106 | 106 | "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" |
112 | 108 | }, |
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": [], |
122 | 110 | "source": [ |
123 | 111 | "import openmmtools\n", |
124 | 112 | "\n", |
|
152 | 140 | "cell_type": "code", |
153 | 141 | "metadata": { |
154 | 142 | "id": "ofemZo6sIbLU", |
155 | | - "outputId": "4181fcb6-db72-47e7-edb5-2a4bb0252de7" |
| 143 | + "outputId": "9604e005-80ed-4553-eada-fc73f032b653" |
156 | 144 | }, |
157 | 145 | "outputs": [ |
158 | 146 | { |
159 | | - "name": "stderr", |
160 | 147 | "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 | | - { |
167 | 148 | "name": "stdout", |
168 | | - "output_type": "stream", |
169 | 149 | "text": [ |
170 | 150 | "/usr/local/lib/python3.7/site-packages/torchani/resources/\n", |
171 | 151 | "Downloading ANI model parameters ...\n" |
172 | 152 | ] |
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 | | - ] |
181 | 153 | } |
182 | 154 | ], |
183 | 155 | "source": [ |
|
204 | 176 | "\n", |
205 | 177 | " # Prepare the positions\n", |
206 | 178 | " positions = positions.unsqueeze(0).float() * 10 # nm --> Å\n", |
207 | | - " \n", |
| 179 | + "\n", |
208 | 180 | " # Run ANI-2x\n", |
209 | 181 | " result = self.model((self.atomic_numbers, positions))\n", |
210 | 182 | " \n", |
|
230 | 202 | "cell_type": "code", |
231 | 203 | "metadata": { |
232 | 204 | "id": "D42I_L9r-Krj", |
233 | | - "outputId": "c1738d48-71e2-40ea-9965-d9dbd2147406" |
| 205 | + "outputId": "0fb1e3f7-3042-401d-bca3-7ffb4b313739" |
234 | 206 | }, |
235 | 207 | "outputs": [ |
236 | 208 | { |
237 | | - "name": "stdout", |
238 | 209 | "output_type": "stream", |
| 210 | + "name": "stdout", |
239 | 211 | "text": [ |
240 | 212 | "-1301523.8702643516\n" |
241 | 213 | ] |
|
0 commit comments