Skip to content

Commit e546011

Browse files
committed
Remove ThinElement
1 parent 776e747 commit e546011

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

src/pals/kinds/Marker.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
from typing import Literal
22

3-
from .mixin import ThinElement
3+
from .mixin import BaseElement
44

55

6-
class Marker(ThinElement):
6+
class Marker(BaseElement):
77
"""Zero length element to mark a particular position
88
99
The main purpose of this thin element is to name a position in the beamline.
1010
"""
1111

1212
# Discriminator field
1313
kind: Literal["Marker"] = "Marker"
14+
15+
# Segment length in meters (m)
16+
# Always 0, cannot be modified
17+
length: Literal[0.0] = 0.0

src/pals/kinds/mixin/ThinElement.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/pals/kinds/mixin/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
from .BaseElement import BaseElement # noqa: F401
22
from .ThickElement import ThickElement # noqa: F401
3-
from .ThinElement import ThinElement # noqa: F401

0 commit comments

Comments
 (0)