Skip to content

Commit

Permalink
deploy: 571f7e3
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherMayes committed Nov 15, 2023
1 parent 7233cda commit e05bbb1
Show file tree
Hide file tree
Showing 22 changed files with 1,177 additions and 1,177 deletions.
4 changes: 2 additions & 2 deletions api/particles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4344,8 +4344,8 @@ <h1>Particles</h1>
<span class="k">return</span> <span class="n">deepcopy</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>

<span class="nd">@functools</span><span class="o">.</span><span class="n">wraps</span><span class="p">(</span><span class="n">resample_particles</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">resample</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">resample_particles</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">n</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">resample</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">equal_weights</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">resample_particles</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">n</span><span class="p">,</span> <span class="n">equal_weights</span><span class="o">=</span><span class="n">equal_weights</span><span class="p">)</span>
<span class="k">return</span> <span class="n">ParticleGroup</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">data</span><span class="p">)</span>

<span class="c1"># Internal sorting</span>
Expand Down
Binary file modified assets/openPMD-beamphysics-examples.zip
Binary file not shown.
136 changes: 68 additions & 68 deletions examples/bunching/bunching.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"id": "89d98045-89b5-4d05-a1b3-33f956ba329c",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:21.972774Z",
"iopub.status.busy": "2023-11-15T16:37:21.972421Z",
"iopub.status.idle": "2023-11-15T16:37:22.573329Z",
"shell.execute_reply": "2023-11-15T16:37:22.572736Z"
"iopub.execute_input": "2023-11-15T21:43:12.583496Z",
"iopub.status.busy": "2023-11-15T21:43:12.583317Z",
"iopub.status.idle": "2023-11-15T21:43:13.196397Z",
"shell.execute_reply": "2023-11-15T21:43:13.195786Z"
}
},
"outputs": [],
Expand All @@ -51,10 +51,10 @@
"id": "2808d05b-41dc-44eb-ac98-ae00ec7ba97b",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:22.576333Z",
"iopub.status.busy": "2023-11-15T16:37:22.575855Z",
"iopub.status.idle": "2023-11-15T16:37:22.593411Z",
"shell.execute_reply": "2023-11-15T16:37:22.592942Z"
"iopub.execute_input": "2023-11-15T21:43:13.199048Z",
"iopub.status.busy": "2023-11-15T21:43:13.198793Z",
"iopub.status.idle": "2023-11-15T21:43:13.217129Z",
"shell.execute_reply": "2023-11-15T21:43:13.216550Z"
}
},
"outputs": [],
Expand All @@ -73,10 +73,10 @@
"id": "f92a71d1-2804-4fba-a38b-3089351a910d",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:22.595536Z",
"iopub.status.busy": "2023-11-15T16:37:22.595360Z",
"iopub.status.idle": "2023-11-15T16:37:23.746043Z",
"shell.execute_reply": "2023-11-15T16:37:23.745435Z"
"iopub.execute_input": "2023-11-15T21:43:13.219950Z",
"iopub.status.busy": "2023-11-15T21:43:13.219351Z",
"iopub.status.idle": "2023-11-15T21:43:14.390925Z",
"shell.execute_reply": "2023-11-15T21:43:14.390250Z"
}
},
"outputs": [
Expand Down Expand Up @@ -121,10 +121,10 @@
"id": "95d51518-4dad-478d-a67f-4416e5e5a989",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.748326Z",
"iopub.status.busy": "2023-11-15T16:37:23.748146Z",
"iopub.status.idle": "2023-11-15T16:37:23.761871Z",
"shell.execute_reply": "2023-11-15T16:37:23.761376Z"
"iopub.execute_input": "2023-11-15T21:43:14.393510Z",
"iopub.status.busy": "2023-11-15T21:43:14.393132Z",
"iopub.status.idle": "2023-11-15T21:43:14.407145Z",
"shell.execute_reply": "2023-11-15T21:43:14.406592Z"
}
},
"outputs": [
Expand All @@ -150,10 +150,10 @@
"id": "9a0ba850-3e57-4b70-b0d1-31376166da55",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.763816Z",
"iopub.status.busy": "2023-11-15T16:37:23.763647Z",
"iopub.status.idle": "2023-11-15T16:37:23.775837Z",
"shell.execute_reply": "2023-11-15T16:37:23.775407Z"
"iopub.execute_input": "2023-11-15T21:43:14.409427Z",
"iopub.status.busy": "2023-11-15T21:43:14.409081Z",
"iopub.status.idle": "2023-11-15T21:43:14.421507Z",
"shell.execute_reply": "2023-11-15T21:43:14.420963Z"
}
},
"outputs": [
Expand All @@ -178,10 +178,10 @@
"id": "4756a087-6e40-4000-a4ea-158fc7a54d74",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.778129Z",
"iopub.status.busy": "2023-11-15T16:37:23.777671Z",
"iopub.status.idle": "2023-11-15T16:37:23.790094Z",
"shell.execute_reply": "2023-11-15T16:37:23.789521Z"
"iopub.execute_input": "2023-11-15T21:43:14.424109Z",
"iopub.status.busy": "2023-11-15T21:43:14.423630Z",
"iopub.status.idle": "2023-11-15T21:43:14.436403Z",
"shell.execute_reply": "2023-11-15T21:43:14.435919Z"
}
},
"outputs": [
Expand All @@ -206,10 +206,10 @@
"id": "1627bba1-710e-47b6-b923-9c64a6d32903",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.792271Z",
"iopub.status.busy": "2023-11-15T16:37:23.791849Z",
"iopub.status.idle": "2023-11-15T16:37:23.804165Z",
"shell.execute_reply": "2023-11-15T16:37:23.803603Z"
"iopub.execute_input": "2023-11-15T21:43:14.438638Z",
"iopub.status.busy": "2023-11-15T21:43:14.438277Z",
"iopub.status.idle": "2023-11-15T21:43:14.450694Z",
"shell.execute_reply": "2023-11-15T21:43:14.450120Z"
}
},
"outputs": [
Expand Down Expand Up @@ -242,10 +242,10 @@
"id": "d24b9496-e828-45f1-a055-4e27e7aeba31",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.806304Z",
"iopub.status.busy": "2023-11-15T16:37:23.805979Z",
"iopub.status.idle": "2023-11-15T16:37:23.808661Z",
"shell.execute_reply": "2023-11-15T16:37:23.808188Z"
"iopub.execute_input": "2023-11-15T21:43:14.453178Z",
"iopub.status.busy": "2023-11-15T21:43:14.452682Z",
"iopub.status.idle": "2023-11-15T21:43:14.455517Z",
"shell.execute_reply": "2023-11-15T21:43:14.455001Z"
}
},
"outputs": [],
Expand All @@ -261,10 +261,10 @@
"id": "c6b5c501-bfdd-492d-891e-ba10e6b546ef",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.810663Z",
"iopub.status.busy": "2023-11-15T16:37:23.810490Z",
"iopub.status.idle": "2023-11-15T16:37:23.813258Z",
"shell.execute_reply": "2023-11-15T16:37:23.812787Z"
"iopub.execute_input": "2023-11-15T21:43:14.457777Z",
"iopub.status.busy": "2023-11-15T21:43:14.457447Z",
"iopub.status.idle": "2023-11-15T21:43:14.460396Z",
"shell.execute_reply": "2023-11-15T21:43:14.459833Z"
}
},
"outputs": [],
Expand All @@ -278,10 +278,10 @@
"id": "50cda5af-4a97-4aa0-bf9c-c3984140d39c",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:23.815201Z",
"iopub.status.busy": "2023-11-15T16:37:23.815033Z",
"iopub.status.idle": "2023-11-15T16:37:25.878544Z",
"shell.execute_reply": "2023-11-15T16:37:25.877985Z"
"iopub.execute_input": "2023-11-15T21:43:14.462630Z",
"iopub.status.busy": "2023-11-15T21:43:14.462326Z",
"iopub.status.idle": "2023-11-15T21:43:16.535868Z",
"shell.execute_reply": "2023-11-15T21:43:16.535238Z"
}
},
"outputs": [
Expand Down Expand Up @@ -323,10 +323,10 @@
"id": "42b088fa-aaef-43df-910f-07cddac21bb0",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:25.880908Z",
"iopub.status.busy": "2023-11-15T16:37:25.880548Z",
"iopub.status.idle": "2023-11-15T16:37:26.207130Z",
"shell.execute_reply": "2023-11-15T16:37:26.206563Z"
"iopub.execute_input": "2023-11-15T21:43:16.538316Z",
"iopub.status.busy": "2023-11-15T21:43:16.537924Z",
"iopub.status.idle": "2023-11-15T21:43:16.865999Z",
"shell.execute_reply": "2023-11-15T21:43:16.865369Z"
}
},
"outputs": [
Expand Down Expand Up @@ -356,10 +356,10 @@
"id": "d9c0236c-cab9-463f-a2f3-010ef120b11c",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:26.209645Z",
"iopub.status.busy": "2023-11-15T16:37:26.209155Z",
"iopub.status.idle": "2023-11-15T16:37:26.541539Z",
"shell.execute_reply": "2023-11-15T16:37:26.540922Z"
"iopub.execute_input": "2023-11-15T21:43:16.868608Z",
"iopub.status.busy": "2023-11-15T21:43:16.868236Z",
"iopub.status.idle": "2023-11-15T21:43:17.203084Z",
"shell.execute_reply": "2023-11-15T21:43:17.202462Z"
}
},
"outputs": [
Expand Down Expand Up @@ -389,10 +389,10 @@
"id": "bbc674b0-67d8-4a5c-abe0-583bdf0270f2",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:26.544067Z",
"iopub.status.busy": "2023-11-15T16:37:26.543723Z",
"iopub.status.idle": "2023-11-15T16:37:26.553032Z",
"shell.execute_reply": "2023-11-15T16:37:26.552470Z"
"iopub.execute_input": "2023-11-15T21:43:17.205541Z",
"iopub.status.busy": "2023-11-15T21:43:17.205176Z",
"iopub.status.idle": "2023-11-15T21:43:17.214422Z",
"shell.execute_reply": "2023-11-15T21:43:17.213865Z"
}
},
"outputs": [
Expand Down Expand Up @@ -427,10 +427,10 @@
"id": "01b2f6d7-734c-4bea-add3-48ffa215dacc",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:26.555352Z",
"iopub.status.busy": "2023-11-15T16:37:26.554905Z",
"iopub.status.idle": "2023-11-15T16:37:26.558649Z",
"shell.execute_reply": "2023-11-15T16:37:26.558089Z"
"iopub.execute_input": "2023-11-15T21:43:17.216676Z",
"iopub.status.busy": "2023-11-15T21:43:17.216338Z",
"iopub.status.idle": "2023-11-15T21:43:17.220159Z",
"shell.execute_reply": "2023-11-15T21:43:17.219676Z"
}
},
"outputs": [
Expand All @@ -455,10 +455,10 @@
"id": "f5ecde78-9f42-40be-907b-81109f511015",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:26.560942Z",
"iopub.status.busy": "2023-11-15T16:37:26.560400Z",
"iopub.status.idle": "2023-11-15T16:37:26.564401Z",
"shell.execute_reply": "2023-11-15T16:37:26.563843Z"
"iopub.execute_input": "2023-11-15T21:43:17.222196Z",
"iopub.status.busy": "2023-11-15T21:43:17.222012Z",
"iopub.status.idle": "2023-11-15T21:43:17.225654Z",
"shell.execute_reply": "2023-11-15T21:43:17.225129Z"
}
},
"outputs": [
Expand Down Expand Up @@ -493,10 +493,10 @@
"id": "ac7ee4c6-1b02-40a1-96a3-3be6629da002",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:26.566864Z",
"iopub.status.busy": "2023-11-15T16:37:26.566448Z",
"iopub.status.idle": "2023-11-15T16:37:26.569223Z",
"shell.execute_reply": "2023-11-15T16:37:26.568732Z"
"iopub.execute_input": "2023-11-15T21:43:17.227701Z",
"iopub.status.busy": "2023-11-15T21:43:17.227525Z",
"iopub.status.idle": "2023-11-15T21:43:17.230090Z",
"shell.execute_reply": "2023-11-15T21:43:17.229575Z"
}
},
"outputs": [],
Expand All @@ -510,10 +510,10 @@
"id": "af2982d8-a19d-481f-b9ec-940d5d02e290",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-15T16:37:26.571200Z",
"iopub.status.busy": "2023-11-15T16:37:26.571026Z",
"iopub.status.idle": "2023-11-15T16:37:26.604229Z",
"shell.execute_reply": "2023-11-15T16:37:26.603775Z"
"iopub.execute_input": "2023-11-15T21:43:17.232086Z",
"iopub.status.busy": "2023-11-15T21:43:17.231911Z",
"iopub.status.idle": "2023-11-15T21:43:17.265174Z",
"shell.execute_reply": "2023-11-15T21:43:17.264703Z"
}
},
"outputs": [],
Expand Down
Loading

0 comments on commit e05bbb1

Please sign in to comment.