Is there any reason not to allow access to Python submodules from the `orbit` module? ```python import orbit bunch = orbit.core.Bunch() lattice = orbit.teapot.TEAPOT_Lattice() ... ``` Currently we have to write: ```python from orbit.core.bunch import Bunch from orbit.teapot import TEAPOT_Lattice ... bunch = Bunch() lattice = TEAPOT_Lattice() ... ```
Activity
woodtp commentedon Oct 9, 2026
Related issue #16
woodtp commentedon Oct 9, 2026
All this requires is the following lines in
py/orbit/__init__.pyAnd maybe
py/orbit/core/__init__.pyThinking about it, it would kind of make sense to me to export
Bunchand maybe other commonly used objects directly from theorbitmodule:Then you would be able to
austin-hoover commentedon Oct 12, 2026
I made PR #158.
austin-hoover commentedon Oct 12, 2026
I agree that it would make sense to have
Bunchaccessible directly fromorbitimport, instead oforbit.core.bunch.Bunch.