You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [pre-commit.ci] pre-commit autoupdate (BLAST-ImpactX#1161)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.1 → v0.13.2](astral-sh/ruff-pre-commit@v0.13.1...v0.13.2)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (BLAST-ImpactX#1165)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.13.3](astral-sh/ruff-pre-commit@v0.13.2...v0.13.3)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Gauss 3D: Fix Push Constants (BLAST-ImpactX#1168)
This fixes the push constants for non-equal x,y,z and
adds an end-point correction for the integration. It
also changes the number of integration points by default
to 101 instead of 401.
Co-authored-by: Ji Qiang <[email protected]>
* [pre-commit.ci] pre-commit autoupdate (BLAST-ImpactX#1174)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.3 → v0.14.0](astral-sh/ruff-pre-commit@v0.13.3...v0.14.0)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump stefanzweifel/git-auto-commit-action from 6 to 7 (BLAST-ImpactX#1175)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6 to 7.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](stefanzweifel/git-auto-commit-action@v6...v7)
---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump github/codeql-action from 3 to 4 (BLAST-ImpactX#1176)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v3...v4)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix `BeamMonitor`: Delay Open (BLAST-ImpactX#1178)
`BeamMonitor` opens the openPMD series now on first output. This
simplifies usage dramatically, now allowing to:
* create the lattice (monitor elements) before the `sim` is even
initialized
* creating a monitor element and not using it in a lattice
* CMake `pip_install`: Package Examples (BLAST-ImpactX#1179)
Ensure the `examples/` directory is part of the `pip` wheels
we build, e.g., on `cmake --build build -j 6 --target pip_install`
* Envelope: Silence Warning w/o Space-Charge (BLAST-ImpactX#1173)
Consistent with the other two tracking modes, we only
print options upfront and do not warn every simulation
step if space charge is not used.
* Release 25.10 (BLAST-ImpactX#1180)
* Update Stub Files
* AMReX/ABLASTR/WarpX: development (BLAST-ImpactX#1177)
* ABLASTR/WarpX: development
Update the ABLASTR dependency to the latest development branch.
* pyAMReX: `development`
* Python: Improve `KnownElementsList` (BLAST-ImpactX#1181)
Add per-element by-reference access for manipulation.
* Update Stub Files
* Element Selection Syntax (BLAST-ImpactX#1182)
* Implementation
5hr vibe pair coded in Cursor. Maybe should have just done it xD
* Doc
* Fix Type Hints
* `select`: Fix All-Selected Path
Avoid implicit return of `None`
* Cleanup
* Update Stub Files
* Fix Python import errors (BLAST-ImpactX#1186)
* Update Stub Files
* Fix RFCavity edge case (BLAST-ImpactX#1185)
* Fix RFCavity edge case.
* Remove extra semicolon.
* Fix el typing (BLAST-ImpactX#1190)
* Fix `KnownElementsList` Stubs
Avoid importing `typing` for type hints, because pybind11-stubgen
forgets the import when generating `pyi` files...
* Update Stubs
* Update PALS to 0.2.0 (BLAST-ImpactX#1184)
* Update PALS version
* Fix missing imports in KnownElementsList.pyi
* Fix FODO example script
* Revert changes to stub file
* fix some math issues in examle documentation (BLAST-ImpactX#1191)
* "Starting step" Print: Spaces (BLAST-ImpactX#1187)
- newline before new step
- no space before `++++ Starting step`
* Element Names: All, `None` (BLAST-ImpactX#1189)
It is easier for user-facing workflows if `.name` exists
for all elements, even `Empty`.
In Python, instead of throwing an exception we return the
`None` value for elements without a user-provided name,
which simplifies user-logic. In this case `.has_name` is
`False`.
* Update Stub Files
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Axel Huebl <[email protected]>
Co-authored-by: Ji Qiang <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ax3l <[email protected]>
Co-authored-by: Edoardo Zoni <[email protected]>
Co-authored-by: Richard Pausch <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/usage/python.rst
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -637,6 +637,60 @@ This module provides elements and methods for the accelerator lattice.
637
637
:param pals_line: PALS Python Line with beamline elements
638
638
:param nslice: number of slices used for the application of collective effects
639
639
640
+
.. py:method:: select(kind=None, name=None)
641
+
642
+
Filter elements by type and/or name.
643
+
If both are provided, OR-based logic is applied.
644
+
645
+
Returns references to original elements, allowing modification and chaining.
646
+
Chained ``.select(...).select(...)`` selections are AND-filtered.
647
+
648
+
:param kind: Element type(s) to filter by. Can be a string (e.g., ``"Drift"``), regex pattern (e.g., ``r".*Quad"``), element type (e.g., ``elements.Drift``), or list/tuple of these.
649
+
:param name: Element name(s) to filter by. Can be a string, regex pattern, or ``list``/``tuple`` of these.
Copy file name to clipboardExpand all lines: examples/dogleg/README.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The final expected dispersion is 267 mm.
15
15
In this test, the initial and final values of :math:`\sigma_x`, :math:`\sigma_y`, :math:`\sigma_t`, :math:`\epsilon_x`, :math:`\epsilon_y`, and :math:`\epsilon_t` must
16
16
agree with nominal values.
17
17
18
-
In addition, the initial and final values of :math:`\alpha_x`, :math:`\alpha_y`, :math:`\beta_x`, :math:`\beta_y`, :math:`\dispersion_x`, and :math:`\dispersion_px` must
18
+
In addition, the initial and final values of :math:`\alpha_x`, :math:`\alpha_y`, :math:`\beta_x`, :math:`\beta_y`, :math:`D_x`, and :math:`D_{px}` must
19
19
agree with nominal values.
20
20
21
21
@@ -73,7 +73,7 @@ The initial dispersion is taken to be -267 mm.
73
73
In this test, the initial and final values of :math:`\sigma_x`, :math:`\sigma_y`, :math:`\sigma_t`, :math:`\epsilon_x`, :math:`\epsilon_y`, and :math:`\epsilon_t` must
74
74
agree with nominal values.
75
75
76
-
In addition, the initial and final values of :math:`\alpha_x`, :math:`\alpha_y`, :math:`\beta_x`, :math:`\beta_y`, :math:`\dispersion_x`, and :math:`\dispersion_px` must
76
+
In addition, the initial and final values of :math:`\alpha_x`, :math:`\alpha_y`, :math:`\beta_x`, :math:`\beta_y`, :math:`D_x`, and :math:`D_{px}` must
77
77
agree with nominal values.
78
78
79
79
Run
@@ -128,10 +128,10 @@ The 2.5% energy offset couples through the lattice R16 (dispersion) to result in
128
128
In this test, the initial and final values of :math:`\sigma_x`, :math:`\sigma_y`, :math:`\sigma_t`, :math:`\epsilon_x`, :math:`\epsilon_y`, and :math:`\epsilon_t` must
129
129
agree with nominal values.
130
130
131
-
In addition, the initial and final values of :math:`\alpha_x`, :math:`\alpha_y`, :math:`\beta_x`, :math:`\beta_y`, :math:`\dispersion_x`, and :math:`\dispersion_px` must
131
+
In addition, the initial and final values of :math:`\alpha_x`, :math:`\alpha_y`, :math:`\beta_x`, :math:`\beta_y`, :math:`D_x`, and :math:`D_{px}` must
132
132
agree with nominal values.
133
133
134
-
Finally, the values of :math:`\mean_pt`, :math:`\mean_x`, and :math:`\mean_px` must agree with predicted values.
134
+
Finally, the values of :math:`\mean_pt`, :math:`\mean_x`, and :math:`\mean_{px}` must agree with predicted values.
0 commit comments