Skip to content

Commit da097a2

Browse files
committed
Update default settings
1 parent 4bea316 commit da097a2

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

openmm_septop/python_tutorial.ipynb

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 2,
31+
"execution_count": 1,
3232
"id": "fc97de03",
3333
"metadata": {},
3434
"outputs": [],
@@ -84,7 +84,7 @@
8484
"name": "stderr",
8585
"output_type": "stream",
8686
"text": [
87-
"Generating charges: 100%|███████████████████████| 10/10 [02:35<00:00, 15.56s/it]\n"
87+
"Generating charges: 100%|███████████████████████| 10/10 [02:41<00:00, 16.12s/it]\n"
8888
]
8989
}
9090
],
@@ -125,7 +125,7 @@
125125
},
126126
{
127127
"cell_type": "code",
128-
"execution_count": 24,
128+
"execution_count": 4,
129129
"id": "5a3cf244",
130130
"metadata": {},
131131
"outputs": [],
@@ -145,7 +145,7 @@
145145
},
146146
{
147147
"cell_type": "code",
148-
"execution_count": 25,
148+
"execution_count": 5,
149149
"id": "f6e7bce5",
150150
"metadata": {},
151151
"outputs": [],
@@ -167,7 +167,7 @@
167167
},
168168
{
169169
"cell_type": "code",
170-
"execution_count": 26,
170+
"execution_count": 6,
171171
"id": "e6ca6131",
172172
"metadata": {},
173173
"outputs": [
@@ -178,7 +178,7 @@
178178
"<Figure size 800x800 with 1 Axes>"
179179
]
180180
},
181-
"execution_count": 26,
181+
"execution_count": 6,
182182
"metadata": {},
183183
"output_type": "execute_result"
184184
}
@@ -198,7 +198,7 @@
198198
},
199199
{
200200
"cell_type": "code",
201-
"execution_count": 27,
201+
"execution_count": 7,
202202
"id": "2263838f",
203203
"metadata": {},
204204
"outputs": [],
@@ -320,18 +320,36 @@
320320
"id": "56658a3a",
321321
"metadata": {},
322322
"source": [
323-
"We'll use the default settings for the `Protocol` in this tutorial."
323+
"There are various different parameters which can be set to determine how the SepTop simulation will take place.\n",
324+
"\n",
325+
"The easiest way to customize protocol settings is to start with the default settings, and modify them. Many settings carry units with them.\n",
326+
"\n",
327+
"Here, we will change the default simulation time to speed things up for the tutorial."
324328
]
325329
},
326330
{
327331
"cell_type": "code",
328332
"execution_count": 14,
333+
"id": "c2b3de6d-1f11-432d-82f3-9deff16c78dc",
334+
"metadata": {},
335+
"outputs": [],
336+
"source": [
337+
"from openff.units import unit\n",
338+
"settings = SepTopProtocol.default_settings()\n",
339+
"settings.solvent_simulation_settings.equilibration_length = 10 * unit.picosecond\n",
340+
"settings.solvent_simulation_settings.production_length = 500 * unit.picosecond\n",
341+
"settings.complex_simulation_settings.equilibration_length = 10 * unit.picosecond\n",
342+
"settings.complex_simulation_settings.production_length = 500 * unit.picosecond"
343+
]
344+
},
345+
{
346+
"cell_type": "code",
347+
"execution_count": 15,
329348
"id": "7adf42d6",
330349
"metadata": {},
331350
"outputs": [],
332351
"source": [
333-
"default_settings = SepTopProtocol.default_settings()\n",
334-
"protocol = SepTopProtocol(default_settings)"
352+
"protocol = SepTopProtocol(settings)"
335353
]
336354
},
337355
{
@@ -346,7 +364,7 @@
346364
},
347365
{
348366
"cell_type": "code",
349-
"execution_count": 15,
367+
"execution_count": 16,
350368
"id": "44ba94ca",
351369
"metadata": {},
352370
"outputs": [],
@@ -383,7 +401,7 @@
383401
},
384402
{
385403
"cell_type": "code",
386-
"execution_count": 19,
404+
"execution_count": 17,
387405
"id": "66666a80",
388406
"metadata": {},
389407
"outputs": [],
@@ -428,7 +446,7 @@
428446
},
429447
{
430448
"cell_type": "code",
431-
"execution_count": 20,
449+
"execution_count": 18,
432450
"id": "d6cebd9a",
433451
"metadata": {},
434452
"outputs": [],
@@ -445,7 +463,7 @@
445463
},
446464
{
447465
"cell_type": "code",
448-
"execution_count": 21,
466+
"execution_count": 19,
449467
"id": "b96b57a9",
450468
"metadata": {},
451469
"outputs": [
@@ -499,7 +517,7 @@
499517
"metadata": {},
500518
"source": [
501519
"Finally now that we've run our simulations, let's go ahead and gather the free energies for both phases.\n",
502-
"If you ran the simulation using the CLI (i.e. by calling openfe quickrun ) you will end up with a JSON output file fpr each transformation. To get your simulation results you can load them back into Python in the following manner:"
520+
"If you ran the simulation using the CLI (i.e. by calling openfe quickrun ) you will end up with a JSON output file for each transformation. To get your simulation results you can load them back into Python in the following manner:"
503521
]
504522
},
505523
{

0 commit comments

Comments
 (0)