Skip to content

Accessing submodules #145

Description

@austin-hoover

Is there any reason not to allow access to Python submodules from the orbit module?

import orbit

bunch = orbit.core.Bunch()
lattice = orbit.teapot.TEAPOT_Lattice()
...

Currently we have to write:

from orbit.core.bunch import Bunch
from orbit.teapot import TEAPOT_Lattice
...

bunch = orbit.core.Bunch()
lattice = orbit.teapot.TEAPOT_Lattice()
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions