Skip to content

Commit e2fbc48

Browse files
committed
Trying to remove notebook output on commit.
1 parent 36c36e6 commit e2fbc48

8 files changed

Lines changed: 835 additions & 106 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.ipynb filter=jupyternotebook

Electron.ipynb

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +0,0 @@
1-
{
2-
"cells": [
3-
{
4-
"cell_type": "markdown",
5-
"metadata": {},
6-
"source": [
7-
"# Electron\n",
8-
"\n",
9-
"These are materials that have a library type of `e`. \n",
10-
"\n",
11-
"## Listing\n",
12-
"To get a list of discrete-energy neutron data, execute the following cells. To execute, select the cell and press `CTRL-Enter`.\n",
13-
"## Columns\n",
14-
"The main columns shown for fast neutrons are:\n",
15-
"\n",
16-
"`ZAID`\n",
17-
": ZAID\n",
18-
"\n",
19-
"`AWR`\n",
20-
": atomic weight ratio\n",
21-
"\n",
22-
"`library`\n",
23-
": The collection of data tables making up a library of data\n",
24-
"\n",
25-
"`path`\n",
26-
": Relative path to where the actual data file is found\n",
27-
"\n",
28-
"`ZA`\n",
29-
": ZA of the target material\n",
30-
"\n",
31-
"`T(K)`\n",
32-
": The temperature (in Kelvin) of the material\n",
33-
"\n",
34-
"`Date`\n",
35-
": The date the data was processed. There is some *very* old data"
36-
]
37-
},
38-
{
39-
"cell_type": "code",
40-
"execution_count": null,
41-
"metadata": {},
42-
"outputs": [],
43-
"source": [
44-
"import listing\n",
45-
"XSDIR = listing.loadXSDIR()\n",
46-
"lib_type = 'e'\n",
47-
"display = listing.DisplayData(XSDIR, lib_type)"
48-
]
49-
},
50-
{
51-
"cell_type": "markdown",
52-
"metadata": {},
53-
"source": [
54-
"To show the listing for a particular `ZA`, execute the `display` function which takes the `ZA` as an argument. If no `ZA` is given as an argument, *all* the entries will be displayed (and abbreviated) which is probably not what you want."
55-
]
56-
},
57-
{
58-
"cell_type": "code",
59-
"execution_count": null,
60-
"metadata": {},
61-
"outputs": [],
62-
"source": [
63-
"ZA = 1000\n",
64-
"display(ZA)"
65-
]
66-
}
67-
],
68-
"metadata": {
69-
"kernelspec": {
70-
"display_name": "Python 3",
71-
"language": "python",
72-
"name": "python3"
73-
},
74-
"language_info": {
75-
"codemirror_mode": {
76-
"name": "ipython",
77-
"version": 3
78-
},
79-
"file_extension": ".py",
80-
"mimetype": "text/x-python",
81-
"name": "python",
82-
"nbconvert_exporter": "python",
83-
"pygments_lexer": "ipython3",
84-
"version": "3.8.5"
85-
}
86-
},
87-
"nbformat": 4,
88-
"nbformat_minor": 4
89-
}

GettingStarted.ipynb

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,22 @@
2727
"metadata": {
2828
"tags": []
2929
},
30-
"outputs": [],
30+
"outputs": [
31+
{
32+
"data": {
33+
"application/vnd.jupyter.widget-view+json": {
34+
"model_id": "3a335f6ae08b485996e73dae8f1754bb",
35+
"version_major": 2,
36+
"version_minor": 0
37+
},
38+
"text/plain": [
39+
"HBox(children=(HTML(value=''), FloatProgress(value=0.0, max=15035.0), HTML(value='')))"
40+
]
41+
},
42+
"metadata": {},
43+
"output_type": "display_data"
44+
}
45+
],
3146
"source": [
3247
"import os\n",
3348
"import pathlib\n",

NeutronPhoton.ipynb

Lines changed: 158 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"cell_type": "code",
40-
"execution_count": null,
40+
"execution_count": 3,
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -56,9 +56,164 @@
5656
},
5757
{
5858
"cell_type": "code",
59-
"execution_count": null,
59+
"execution_count": 4,
6060
"metadata": {},
61-
"outputs": [],
61+
"outputs": [
62+
{
63+
"data": {
64+
"text/html": [
65+
"<div>\n",
66+
"<style scoped>\n",
67+
" .dataframe tbody tr th:only-of-type {\n",
68+
" vertical-align: middle;\n",
69+
" }\n",
70+
"\n",
71+
" .dataframe tbody tr th {\n",
72+
" vertical-align: top;\n",
73+
" }\n",
74+
"\n",
75+
" .dataframe thead th {\n",
76+
" text-align: right;\n",
77+
" }\n",
78+
"</style>\n",
79+
"<table border=\"1\" class=\"dataframe\">\n",
80+
" <thead>\n",
81+
" <tr style=\"text-align: right;\">\n",
82+
" <th></th>\n",
83+
" <th>ZAID</th>\n",
84+
" <th>AWR</th>\n",
85+
" <th>library</th>\n",
86+
" <th>path</th>\n",
87+
" <th>ZA</th>\n",
88+
" <th>T(K)</th>\n",
89+
" </tr>\n",
90+
" </thead>\n",
91+
" <tbody>\n",
92+
" <tr>\n",
93+
" <th>11021</th>\n",
94+
" <td>1001.50m</td>\n",
95+
" <td>0.999172</td>\n",
96+
" <td>mgxsnp</td>\n",
97+
" <td>mgxsnp</td>\n",
98+
" <td>1001</td>\n",
99+
" <td>0.0</td>\n",
100+
" </tr>\n",
101+
" <tr>\n",
102+
" <th>11023</th>\n",
103+
" <td>1002.55m</td>\n",
104+
" <td>1.996810</td>\n",
105+
" <td>mgxsnp</td>\n",
106+
" <td>mgxsnp</td>\n",
107+
" <td>1002</td>\n",
108+
" <td>0.0</td>\n",
109+
" </tr>\n",
110+
" <tr>\n",
111+
" <th>11024</th>\n",
112+
" <td>1003.50m</td>\n",
113+
" <td>2.990154</td>\n",
114+
" <td>mgxsnp</td>\n",
115+
" <td>mgxsnp</td>\n",
116+
" <td>1003</td>\n",
117+
" <td>0.0</td>\n",
118+
" </tr>\n",
119+
" <tr>\n",
120+
" <th>11025</th>\n",
121+
" <td>2003.50m</td>\n",
122+
" <td>2.990134</td>\n",
123+
" <td>mgxsnp</td>\n",
124+
" <td>mgxsnp</td>\n",
125+
" <td>2003</td>\n",
126+
" <td>0.0</td>\n",
127+
" </tr>\n",
128+
" <tr>\n",
129+
" <th>11027</th>\n",
130+
" <td>2004.50m</td>\n",
131+
" <td>3.968238</td>\n",
132+
" <td>mgxsnp</td>\n",
133+
" <td>mgxsnp</td>\n",
134+
" <td>2004</td>\n",
135+
" <td>0.0</td>\n",
136+
" </tr>\n",
137+
" <tr>\n",
138+
" <th>...</th>\n",
139+
" <td>...</td>\n",
140+
" <td>...</td>\n",
141+
" <td>...</td>\n",
142+
" <td>...</td>\n",
143+
" <td>...</td>\n",
144+
" <td>...</td>\n",
145+
" </tr>\n",
146+
" <tr>\n",
147+
" <th>11166</th>\n",
148+
" <td>95241.50m</td>\n",
149+
" <td>238.987196</td>\n",
150+
" <td>mgxsnp</td>\n",
151+
" <td>mgxsnp</td>\n",
152+
" <td>95241</td>\n",
153+
" <td>0.0</td>\n",
154+
" </tr>\n",
155+
" <tr>\n",
156+
" <th>11167</th>\n",
157+
" <td>95242.50m</td>\n",
158+
" <td>239.981303</td>\n",
159+
" <td>mgxsnp</td>\n",
160+
" <td>mgxsnp</td>\n",
161+
" <td>95242</td>\n",
162+
" <td>0.0</td>\n",
163+
" </tr>\n",
164+
" <tr>\n",
165+
" <th>11168</th>\n",
166+
" <td>95243.50m</td>\n",
167+
" <td>240.974535</td>\n",
168+
" <td>mgxsnp</td>\n",
169+
" <td>mgxsnp</td>\n",
170+
" <td>95243</td>\n",
171+
" <td>0.0</td>\n",
172+
" </tr>\n",
173+
" <tr>\n",
174+
" <th>11169</th>\n",
175+
" <td>96242.50m</td>\n",
176+
" <td>239.980599</td>\n",
177+
" <td>mgxsnp</td>\n",
178+
" <td>mgxsnp</td>\n",
179+
" <td>96242</td>\n",
180+
" <td>0.0</td>\n",
181+
" </tr>\n",
182+
" <tr>\n",
183+
" <th>11170</th>\n",
184+
" <td>96244.50m</td>\n",
185+
" <td>241.967311</td>\n",
186+
" <td>mgxsnp</td>\n",
187+
" <td>mgxsnp</td>\n",
188+
" <td>96244</td>\n",
189+
" <td>0.0</td>\n",
190+
" </tr>\n",
191+
" </tbody>\n",
192+
"</table>\n",
193+
"<p>95 rows × 6 columns</p>\n",
194+
"</div>"
195+
],
196+
"text/plain": [
197+
" ZAID AWR library path ZA T(K)\n",
198+
"11021 1001.50m 0.999172 mgxsnp mgxsnp 1001 0.0\n",
199+
"11023 1002.55m 1.996810 mgxsnp mgxsnp 1002 0.0\n",
200+
"11024 1003.50m 2.990154 mgxsnp mgxsnp 1003 0.0\n",
201+
"11025 2003.50m 2.990134 mgxsnp mgxsnp 2003 0.0\n",
202+
"11027 2004.50m 3.968238 mgxsnp mgxsnp 2004 0.0\n",
203+
"... ... ... ... ... ... ...\n",
204+
"11166 95241.50m 238.987196 mgxsnp mgxsnp 95241 0.0\n",
205+
"11167 95242.50m 239.981303 mgxsnp mgxsnp 95242 0.0\n",
206+
"11168 95243.50m 240.974535 mgxsnp mgxsnp 95243 0.0\n",
207+
"11169 96242.50m 239.980599 mgxsnp mgxsnp 96242 0.0\n",
208+
"11170 96244.50m 241.967311 mgxsnp mgxsnp 96244 0.0\n",
209+
"\n",
210+
"[95 rows x 6 columns]"
211+
]
212+
},
213+
"metadata": {},
214+
"output_type": "display_data"
215+
}
216+
],
62217
"source": [
63218
"ZA = 1001\n",
64219
"display()"

0 commit comments

Comments
 (0)