Skip to content

Add eigentune calculation to MATRIX_Lattice - #151

Merged
austin-hoover merged 5 commits into
PyORBIT-Collaboration:mainfrom
austin-hoover:matrix-lattice-eigentunes
Oct 13, 2026
Merged

austin-hoover merged 5 commits into
PyORBIT-Collaboration:mainfrom
austin-hoover:matrix-lattice-eigentunes

Conversation

@austin-hoover

Copy link
Copy Markdown
Contributor

The eigenvalues of the transfer matrix are $\lambda_k = \exp(2 \pi i \nu_k)$, where $\nu_k$ is the tune.

@austin-hoover

Copy link
Copy Markdown
Contributor Author

This imports NumPy which is causing failed check:

  File "/__w/PyORBIT3/PyORBIT3/.po3/lib64/python3.9/site-packages/orbit/matrix_lattice/MATRIX_Lattice.py", line 12, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
    from .MATRIX_Lattice import MATRIX_Lattice
  File "/__w/PyORBIT3/PyORBIT3/.po3/lib64/python3.9/site-packages/orbit/matrix_lattice/MATRIX_Lattice.py", line 12, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
Traceback (most recent call last):
  File "/__w/PyORBIT3/PyORBIT3/examples/SpaceCharge/sc3D/read_sc_numbers.py", line 7, in <module>
    print(sizes)
NameError: name 'sizes' is not defined

@austin-hoover austin-hoover self-assigned this Sep 16, 2026
@austin-hoover

Copy link
Copy Markdown
Contributor Author

I think this is fine to merge now. Later on we may want a separate function that returns ring eigenvectors, eigenvalues, normalization matrix, and parameters from the popular parameterizations of coupled motion (like Mais-Ripken).

@austin-hoover

Copy link
Copy Markdown
Contributor Author

@azukov @woodtp I don't know about the build-pyorbit/mpich (pull_request) failure.

@woodtp

woodtp commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

@azukov @woodtp I don't know about the build-pyorbit/mpich (pull_request) failure.

@austin-hoover the numpy dep was missing from the MPICH CI job. I just merged #157, which should fix this. Try to fetch and rebase.

@woodtp

woodtp commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Test is passing now; ready to merge. 👍

@austin-hoover
austin-hoover merged commit 31552f8 into PyORBIT-Collaboration:main Oct 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants