Skip to content

Commit 0f14714

Browse files
author
Lisa Glover
committed
Removed obsolete AsEnumerable() code from the samples
1 parent 09f7f84 commit 0f14714

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

scripting/monte_carlo/demo_01_r_of_rho_simple.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"detectorResults = Array.CreateInstance(ROfRhoDetector,1)\n",
121121
"detectorResults[0] = simulationOutput.ResultsDictionary[\"ROfRho\"]\n",
122122
"logReflectance = [r for r in detectorResults[0].Mean]\n",
123-
"detectorMidpoints = [mp for mp in detectorRange.AsEnumerable()]\n",
123+
"detectorMidpoints = [mp for mp in detectorRange]\n",
124124
"\n",
125125
"xLabel = \"ρ [mm]\"\n",
126126
"yLabel = \"log(R(ρ)) [mm-2]\"\n",
@@ -131,6 +131,13 @@
131131
"chart.update_yaxes(type=\"log\")\n",
132132
"chart.show()\n"
133133
]
134+
},
135+
{
136+
"cell_type": "code",
137+
"execution_count": null,
138+
"metadata": {},
139+
"outputs": [],
140+
"source": []
134141
}
135142
],
136143
"metadata": {

scripting/monte_carlo/demo_02_DAW_vs_CAW.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@
144144
"detectorResults1 = Array.CreateInstance(ROfRhoDetector,1)\n",
145145
"detectorResults1[0] = simulationOutput1.ResultsDictionary[\"ROfRho\"]\n",
146146
"logReflectance1 = [r for r in detectorResults1[0].Mean]\n",
147-
"detectorMidpoints1 = [mp for mp in detectorRange.AsEnumerable()]\n",
147+
"detectorMidpoints1 = [mp for mp in detectorRange]\n",
148148
"\n",
149149
"detectorResults2 = Array.CreateInstance(ROfRhoDetector,1)\n",
150150
"detectorResults2[0] = simulationOutput2.ResultsDictionary[\"ROfRho\"]\n",
151151
"logReflectance2 = [r for r in detectorResults2[0].Mean]\n",
152-
"detectorMidpoints2 = [mp for mp in detectorRange.AsEnumerable()]\n",
152+
"detectorMidpoints2 = [mp for mp in detectorRange]\n",
153153
"\n",
154154
"xLabel = \"ρ [mm]\"\n",
155155
"yLabel = \"log(R(ρ)) [mm-2]\"\n",
@@ -161,6 +161,14 @@
161161
"chart.update_yaxes(type=\"log\")\n",
162162
"chart.show()"
163163
]
164+
},
165+
{
166+
"cell_type": "code",
167+
"execution_count": null,
168+
"id": "c4ec7f86",
169+
"metadata": {},
170+
"outputs": [],
171+
"source": []
164172
}
165173
],
166174
"metadata": {

0 commit comments

Comments
 (0)