Skip to content

Commit 4512c7e

Browse files
committed
Finished clearing output from MP2 module.
1 parent f2ff4bb commit 4512c7e

File tree

2 files changed

+21
-66
lines changed

2 files changed

+21
-66
lines changed

Interactive-Tutorials/05_Moller-Plesset/5a_conventional-mp2.ipynb

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
},
8282
{
8383
"cell_type": "code",
84-
"execution_count": 2,
84+
"execution_count": null,
8585
"metadata": {
8686
"collapsed": true
8787
},
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"cell_type": "code",
108-
"execution_count": 3,
108+
"execution_count": null,
109109
"metadata": {
110110
"collapsed": true
111111
},
@@ -136,7 +136,7 @@
136136
},
137137
{
138138
"cell_type": "code",
139-
"execution_count": 4,
139+
"execution_count": null,
140140
"metadata": {
141141
"collapsed": true
142142
},
@@ -155,7 +155,7 @@
155155
},
156156
{
157157
"cell_type": "code",
158-
"execution_count": 5,
158+
"execution_count": null,
159159
"metadata": {
160160
"collapsed": true
161161
},
@@ -181,20 +181,11 @@
181181
},
182182
{
183183
"cell_type": "code",
184-
"execution_count": 6,
184+
"execution_count": null,
185185
"metadata": {
186186
"collapsed": false
187187
},
188-
"outputs": [
189-
{
190-
"name": "stdout",
191-
"output_type": "stream",
192-
"text": [
193-
"\n",
194-
"Size of the ERI tensor will be 0.00 GB.\n"
195-
]
196-
}
197-
],
188+
"outputs": [],
198189
"source": [
199190
"# ==> ERIs <==\n",
200191
"# Create instance of MintsHelper class\n",
@@ -242,7 +233,7 @@
242233
},
243234
{
244235
"cell_type": "code",
245-
"execution_count": 7,
236+
"execution_count": null,
246237
"metadata": {
247238
"collapsed": true
248239
},
@@ -264,19 +255,11 @@
264255
},
265256
{
266257
"cell_type": "code",
267-
"execution_count": 8,
258+
"execution_count": null,
268259
"metadata": {
269260
"collapsed": false
270261
},
271-
"outputs": [
272-
{
273-
"name": "stdout",
274-
"output_type": "stream",
275-
"text": [
276-
"Do our transformed ERIs match Psi4's? True\n"
277-
]
278-
}
279-
],
262+
"outputs": [],
280263
"source": [
281264
"# ==> Compare our Imo to MintsHelper <==\n",
282265
"Co = scf_wfn.Ca_subset('AO','OCC')\n",
@@ -316,7 +299,7 @@
316299
},
317300
{
318301
"cell_type": "code",
319-
"execution_count": 9,
302+
"execution_count": null,
320303
"metadata": {
321304
"collapsed": false
322305
},
@@ -336,19 +319,11 @@
336319
},
337320
{
338321
"cell_type": "code",
339-
"execution_count": 10,
322+
"execution_count": null,
340323
"metadata": {
341324
"collapsed": false
342325
},
343-
"outputs": [
344-
{
345-
"name": "stdout",
346-
"output_type": "stream",
347-
"text": [
348-
"\tMP2 Energy........................................................PASSED\n"
349-
]
350-
}
351-
],
326+
"outputs": [],
352327
"source": [
353328
"# ==> Compare to Psi4 <==\n",
354329
"psi4.driver.p4util.compare_values(psi4.energy('mp2'), MP2_E, 6, 'MP2 Energy')"

Interactive-Tutorials/05_Moller-Plesset/5b_density-fitted-mp2.ipynb

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": 1,
23+
"execution_count": null,
2424
"metadata": {
2525
"collapsed": true
2626
},
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"cell_type": "code",
40-
"execution_count": 2,
40+
"execution_count": null,
4141
"metadata": {
4242
"collapsed": false
4343
},
@@ -85,7 +85,7 @@
8585
},
8686
{
8787
"cell_type": "code",
88-
"execution_count": 5,
88+
"execution_count": null,
8989
"metadata": {
9090
"collapsed": false
9191
},
@@ -127,7 +127,7 @@
127127
},
128128
{
129129
"cell_type": "code",
130-
"execution_count": 6,
130+
"execution_count": null,
131131
"metadata": {
132132
"collapsed": false
133133
},
@@ -172,23 +172,11 @@
172172
},
173173
{
174174
"cell_type": "code",
175-
"execution_count": 1,
175+
"execution_count": null,
176176
"metadata": {
177177
"collapsed": false
178178
},
179-
"outputs": [
180-
{
181-
"ename": "NameError",
182-
"evalue": "name 'e_ab' is not defined",
183-
"output_type": "error",
184-
"traceback": [
185-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
186-
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
187-
"\u001b[0;32m<ipython-input-1-8caf388a074f>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m# ==> Build VV Epsilon Tensor <==\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0me_vv\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0me_ab\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreshape\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0me_ab\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
188-
"\u001b[0;31mNameError\u001b[0m: name 'e_ab' is not defined"
189-
]
190-
}
191-
],
179+
"outputs": [],
192180
"source": [
193181
"# ==> Build VV Epsilon Tensor <==\n",
194182
"e_vv = e_ab.reshape(-1, 1) + e_ab"
@@ -213,7 +201,7 @@
213201
},
214202
{
215203
"cell_type": "code",
216-
"execution_count": 74,
204+
"execution_count": null,
217205
"metadata": {
218206
"collapsed": false
219207
},
@@ -255,19 +243,11 @@
255243
},
256244
{
257245
"cell_type": "code",
258-
"execution_count": 75,
246+
"execution_count": null,
259247
"metadata": {
260248
"collapsed": false
261249
},
262-
"outputs": [
263-
{
264-
"name": "stdout",
265-
"output_type": "stream",
266-
"text": [
267-
"\tMP2 Energy........................................................PASSED\n"
268-
]
269-
}
270-
],
250+
"outputs": [],
271251
"source": [
272252
"# ==> Compare to Psi4 <==\n",
273253
"psi4.driver.p4util.compare_values(psi4.energy('mp2'), MP2_E, 6, 'MP2 Energy')"

0 commit comments

Comments
 (0)