Skip to content

Commit

Permalink
deploy: 7d3a7a6
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherMayes committed Jun 28, 2023
1 parent 514fcad commit 6c62110
Show file tree
Hide file tree
Showing 21 changed files with 1,092 additions and 1,107 deletions.
6 changes: 3 additions & 3 deletions api/particles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,7 @@ <h2 id="pmd_beamphysics.ParticleGroup" class="doc doc-heading">

<span class="k">def</span> <span class="nf">drift_to_z</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">z</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>

<span class="k">if</span> <span class="ow">not</span> <span class="n">z</span><span class="p">:</span>
<span class="k">if</span> <span class="n">z</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">z</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">avg</span><span class="p">(</span><span class="s1">&#39;z&#39;</span><span class="p">)</span>
<span class="n">dt</span> <span class="o">=</span> <span class="p">(</span><span class="n">z</span> <span class="o">-</span> <span class="bp">self</span><span class="o">.</span><span class="n">z</span><span class="p">)</span> <span class="o">/</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">beta_z</span> <span class="o">*</span> <span class="n">c_light</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">drift</span><span class="p">(</span><span class="n">dt</span><span class="p">)</span>
Expand All @@ -3477,7 +3477,7 @@ <h2 id="pmd_beamphysics.ParticleGroup" class="doc doc-heading">

<span class="sd"> If no z is given, particles will be drifted to the average t</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">t</span><span class="p">:</span>
<span class="k">if</span> <span class="n">t</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">t</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">avg</span><span class="p">(</span><span class="s1">&#39;t&#39;</span><span class="p">)</span>
<span class="n">dt</span> <span class="o">=</span> <span class="n">t</span> <span class="o">-</span> <span class="bp">self</span><span class="o">.</span><span class="n">t</span>
<span class="bp">self</span><span class="o">.</span><span class="n">drift</span><span class="p">(</span><span class="n">dt</span><span class="p">)</span>
Expand Down Expand Up @@ -4912,7 +4912,7 @@ <h3 id="pmd_beamphysics.particles.ParticleGroup.drift_to_t" class="doc doc-headi

<span class="sd"> If no z is given, particles will be drifted to the average t</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">t</span><span class="p">:</span>
<span class="k">if</span> <span class="n">t</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">t</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">avg</span><span class="p">(</span><span class="s1">&#39;t&#39;</span><span class="p">)</span>
<span class="n">dt</span> <span class="o">=</span> <span class="n">t</span> <span class="o">-</span> <span class="bp">self</span><span class="o">.</span><span class="n">t</span>
<span class="bp">self</span><span class="o">.</span><span class="n">drift</span><span class="p">(</span><span class="n">dt</span><span class="p">)</span>
Expand Down
Binary file modified assets/openPMD-beamphysics-examples.zip
Binary file not shown.
120 changes: 60 additions & 60 deletions examples/fields/field_conversion/field_conversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:12.383017Z",
"iopub.status.busy": "2023-06-28T18:39:12.382774Z",
"iopub.status.idle": "2023-06-28T18:39:12.776458Z",
"shell.execute_reply": "2023-06-28T18:39:12.775777Z"
"iopub.execute_input": "2023-06-28T18:45:39.378105Z",
"iopub.status.busy": "2023-06-28T18:45:39.377634Z",
"iopub.status.idle": "2023-06-28T18:45:39.753039Z",
"shell.execute_reply": "2023-06-28T18:45:39.752443Z"
},
"tags": []
},
Expand All @@ -37,10 +37,10 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:12.780002Z",
"iopub.status.busy": "2023-06-28T18:39:12.779716Z",
"iopub.status.idle": "2023-06-28T18:39:13.150832Z",
"shell.execute_reply": "2023-06-28T18:39:13.150116Z"
"iopub.execute_input": "2023-06-28T18:45:39.756385Z",
"iopub.status.busy": "2023-06-28T18:45:39.756020Z",
"iopub.status.idle": "2023-06-28T18:45:40.106622Z",
"shell.execute_reply": "2023-06-28T18:45:40.105004Z"
},
"tags": []
},
Expand All @@ -63,10 +63,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.154736Z",
"iopub.status.busy": "2023-06-28T18:39:13.154301Z",
"iopub.status.idle": "2023-06-28T18:39:13.464480Z",
"shell.execute_reply": "2023-06-28T18:39:13.463805Z"
"iopub.execute_input": "2023-06-28T18:45:40.110332Z",
"iopub.status.busy": "2023-06-28T18:45:40.109762Z",
"iopub.status.idle": "2023-06-28T18:45:40.400949Z",
"shell.execute_reply": "2023-06-28T18:45:40.400428Z"
},
"tags": []
},
Expand Down Expand Up @@ -104,17 +104,17 @@
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.501321Z",
"iopub.status.busy": "2023-06-28T18:39:13.500816Z",
"iopub.status.idle": "2023-06-28T18:39:13.531638Z",
"shell.execute_reply": "2023-06-28T18:39:13.531140Z"
"iopub.execute_input": "2023-06-28T18:45:40.437376Z",
"iopub.status.busy": "2023-06-28T18:45:40.436711Z",
"iopub.status.idle": "2023-06-28T18:45:40.463718Z",
"shell.execute_reply": "2023-06-28T18:45:40.463235Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<FieldMesh with rectangular geometry and (3, 3, 457) shape at 0x7f960055c250>"
"<FieldMesh with rectangular geometry and (3, 3, 457) shape at 0x7f3690834ee0>"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -144,17 +144,17 @@
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.534612Z",
"iopub.status.busy": "2023-06-28T18:39:13.534186Z",
"iopub.status.idle": "2023-06-28T18:39:13.548144Z",
"shell.execute_reply": "2023-06-28T18:39:13.547663Z"
"iopub.execute_input": "2023-06-28T18:45:40.466169Z",
"iopub.status.busy": "2023-06-28T18:45:40.465840Z",
"iopub.status.idle": "2023-06-28T18:45:40.478917Z",
"shell.execute_reply": "2023-06-28T18:45:40.478465Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<FieldMesh with cylindrical geometry and (2, 1, 457) shape at 0x7f960055c1c0>"
"<FieldMesh with cylindrical geometry and (2, 1, 457) shape at 0x7f3690834d90>"
]
},
"execution_count": 5,
Expand All @@ -179,10 +179,10 @@
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.550909Z",
"iopub.status.busy": "2023-06-28T18:39:13.550426Z",
"iopub.status.idle": "2023-06-28T18:39:13.563459Z",
"shell.execute_reply": "2023-06-28T18:39:13.562824Z"
"iopub.execute_input": "2023-06-28T18:45:40.481552Z",
"iopub.status.busy": "2023-06-28T18:45:40.480975Z",
"iopub.status.idle": "2023-06-28T18:45:40.493449Z",
"shell.execute_reply": "2023-06-28T18:45:40.492997Z"
}
},
"outputs": [
Expand Down Expand Up @@ -213,10 +213,10 @@
"execution_count": 7,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.565909Z",
"iopub.status.busy": "2023-06-28T18:39:13.565707Z",
"iopub.status.idle": "2023-06-28T18:39:13.581084Z",
"shell.execute_reply": "2023-06-28T18:39:13.580454Z"
"iopub.execute_input": "2023-06-28T18:45:40.495966Z",
"iopub.status.busy": "2023-06-28T18:45:40.495422Z",
"iopub.status.idle": "2023-06-28T18:45:40.509102Z",
"shell.execute_reply": "2023-06-28T18:45:40.508506Z"
}
},
"outputs": [
Expand All @@ -243,17 +243,17 @@
"execution_count": 8,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.583711Z",
"iopub.status.busy": "2023-06-28T18:39:13.583388Z",
"iopub.status.idle": "2023-06-28T18:39:13.896530Z",
"shell.execute_reply": "2023-06-28T18:39:13.895884Z"
"iopub.execute_input": "2023-06-28T18:45:40.511557Z",
"iopub.status.busy": "2023-06-28T18:45:40.511361Z",
"iopub.status.idle": "2023-06-28T18:45:40.809057Z",
"shell.execute_reply": "2023-06-28T18:45:40.808442Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x7f9600526670>"
"<matplotlib.legend.Legend at 0x7f36989d9fa0>"
]
},
"execution_count": 8,
Expand Down Expand Up @@ -294,17 +294,17 @@
"execution_count": 9,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:13.899655Z",
"iopub.status.busy": "2023-06-28T18:39:13.899129Z",
"iopub.status.idle": "2023-06-28T18:39:14.206729Z",
"shell.execute_reply": "2023-06-28T18:39:14.206026Z"
"iopub.execute_input": "2023-06-28T18:45:40.811700Z",
"iopub.status.busy": "2023-06-28T18:45:40.811465Z",
"iopub.status.idle": "2023-06-28T18:45:41.104949Z",
"shell.execute_reply": "2023-06-28T18:45:41.104295Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x7f9600487ac0>"
"<matplotlib.legend.Legend at 0x7f369894a1f0>"
]
},
"execution_count": 9,
Expand Down Expand Up @@ -350,10 +350,10 @@
"execution_count": 10,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:14.210065Z",
"iopub.status.busy": "2023-06-28T18:39:14.209608Z",
"iopub.status.idle": "2023-06-28T18:39:14.408560Z",
"shell.execute_reply": "2023-06-28T18:39:14.407904Z"
"iopub.execute_input": "2023-06-28T18:45:41.107786Z",
"iopub.status.busy": "2023-06-28T18:45:41.107448Z",
"iopub.status.idle": "2023-06-28T18:45:41.297087Z",
"shell.execute_reply": "2023-06-28T18:45:41.296482Z"
},
"tags": []
},
Expand Down Expand Up @@ -390,10 +390,10 @@
"execution_count": 11,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:14.411928Z",
"iopub.status.busy": "2023-06-28T18:39:14.411517Z",
"iopub.status.idle": "2023-06-28T18:39:14.427203Z",
"shell.execute_reply": "2023-06-28T18:39:14.426550Z"
"iopub.execute_input": "2023-06-28T18:45:41.299961Z",
"iopub.status.busy": "2023-06-28T18:45:41.299756Z",
"iopub.status.idle": "2023-06-28T18:45:41.313915Z",
"shell.execute_reply": "2023-06-28T18:45:41.313347Z"
},
"tags": []
},
Expand Down Expand Up @@ -429,10 +429,10 @@
"execution_count": 12,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:14.429861Z",
"iopub.status.busy": "2023-06-28T18:39:14.429651Z",
"iopub.status.idle": "2023-06-28T18:39:14.446935Z",
"shell.execute_reply": "2023-06-28T18:39:14.445731Z"
"iopub.execute_input": "2023-06-28T18:45:41.316482Z",
"iopub.status.busy": "2023-06-28T18:45:41.316279Z",
"iopub.status.idle": "2023-06-28T18:45:41.330279Z",
"shell.execute_reply": "2023-06-28T18:45:41.329764Z"
},
"tags": []
},
Expand Down Expand Up @@ -463,10 +463,10 @@
"execution_count": 13,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:14.449657Z",
"iopub.status.busy": "2023-06-28T18:39:14.449192Z",
"iopub.status.idle": "2023-06-28T18:39:14.766921Z",
"shell.execute_reply": "2023-06-28T18:39:14.765792Z"
"iopub.execute_input": "2023-06-28T18:45:41.332720Z",
"iopub.status.busy": "2023-06-28T18:45:41.332528Z",
"iopub.status.idle": "2023-06-28T18:45:41.633229Z",
"shell.execute_reply": "2023-06-28T18:45:41.632676Z"
}
},
"outputs": [
Expand Down Expand Up @@ -495,10 +495,10 @@
"execution_count": 14,
"metadata": {
"execution": {
"iopub.execute_input": "2023-06-28T18:39:14.770138Z",
"iopub.status.busy": "2023-06-28T18:39:14.769627Z",
"iopub.status.idle": "2023-06-28T18:39:15.152900Z",
"shell.execute_reply": "2023-06-28T18:39:15.151935Z"
"iopub.execute_input": "2023-06-28T18:45:41.636230Z",
"iopub.status.busy": "2023-06-28T18:45:41.636010Z",
"iopub.status.idle": "2023-06-28T18:45:41.977243Z",
"shell.execute_reply": "2023-06-28T18:45:41.976337Z"
}
},
"outputs": [
Expand Down
8 changes: 4 additions & 4 deletions examples/fields/field_conversion/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ <h2 id="3d-rectangular-field-from-ansys">3D rectangular field from ANSYS<a class


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>&lt;FieldMesh with rectangular geometry and (3, 3, 457) shape at 0x7f960055c250&gt;</pre>
<pre>&lt;FieldMesh with rectangular geometry and (3, 3, 457) shape at 0x7f3690834ee0&gt;</pre>
</div>

</div>
Expand Down Expand Up @@ -2093,7 +2093,7 @@ <h2 id="3d-rectangular-field-from-ansys">3D rectangular field from ANSYS<a class


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>&lt;FieldMesh with cylindrical geometry and (2, 1, 457) shape at 0x7f960055c1c0&gt;</pre>
<pre>&lt;FieldMesh with cylindrical geometry and (2, 1, 457) shape at 0x7f3690834d90&gt;</pre>
</div>

</div>
Expand Down Expand Up @@ -2307,7 +2307,7 @@ <h2 id="3d-rectangular-field-from-ansys">3D rectangular field from ANSYS<a class


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>&lt;matplotlib.legend.Legend at 0x7f9600526670&gt;</pre>
<pre>&lt;matplotlib.legend.Legend at 0x7f36989d9fa0&gt;</pre>
</div>

</div>
Expand Down Expand Up @@ -2393,7 +2393,7 @@ <h2 id="3d-rectangular-field-from-ansys">3D rectangular field from ANSYS<a class


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>&lt;matplotlib.legend.Legend at 0x7f9600487ac0&gt;</pre>
<pre>&lt;matplotlib.legend.Legend at 0x7f369894a1f0&gt;</pre>
</div>

</div>
Expand Down
Loading

0 comments on commit 6c62110

Please sign in to comment.