File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 11from typing import Literal
22
3- from .mixin import BaseElement
4- from .utils import under_construction
3+ from .mixin import ThinElement
54
65
7- @under_construction ("Marker" )
8- class Marker (BaseElement ):
9- """Zero length element to mark a particular position"""
6+ class Marker (ThinElement ):
7+ """Zero length element to mark a particular position
8+
9+ The main purpose of this thin element is to name a position in the beamline.
10+ """
1011
1112 # Discriminator field
1213 kind : Literal ["Marker" ] = "Marker"
Original file line number Diff line number Diff line change 1+ from typing import Literal
2+
3+ from . import BaseElement
4+
5+
6+ class ThinElement (BaseElement ):
7+ """A thin base element with zero segment length"""
8+
9+ # Discriminator field
10+ kind : Literal ["ThinElement" ] = "ThinElement"
11+
12+ # Segment length in meters (m)
13+ # always 0 for thin elements, not modifiable
14+ length : Literal [0.0 ] = 0.0
Original file line number Diff line number Diff line change 11from .BaseElement import BaseElement # noqa: F401
22from .ThickElement import ThickElement # noqa: F401
3+ from .ThinElement import ThinElement # noqa: F401
You can’t perform that action at this time.
0 commit comments