- General Client
- Mission Database
- TM/TC Processing
- Archive
- Link Management
- Object Storage
- File Transfer
- Time Correlation (TCO)
- Activities
- Timeline
- Examples
Python Yamcs Client Release Notes
PyPI
Model¶
- class yamcs.client.ItemBand(proto=None)¶
Bases:
BandShow a selection of timeline items.
- property frozen: bool¶
Fix this line to the top of the view. Frozen bands are always rendered above other bands.
- property space_between_items: int¶
In case of multilining, this indicates the minimum horizontal space between items. If an item does not meet this treshold, it gets rendered on a different line.
- class yamcs.client.OnCompletion(item: TimelineItem | str)¶
Bases:
objectThe item starts only if the predecessor has completed (either through success or failure).
- item: TimelineItem | str¶
Predecessor item (or its identifier)
- class yamcs.client.OnFailure(item: TimelineItem | str)¶
Bases:
objectThe item starts only if the predecessor has failed.
- item: TimelineItem | str¶
Predecessor item (or its identifier)
- class yamcs.client.OnStart(item: TimelineItem | str)¶
Bases:
objectThe item starts as soon as the predecessor has started.
- item: TimelineItem | str¶
Predecessor item (or its identifier)
- class yamcs.client.OnSuccess(item: TimelineItem | str)¶
Bases:
objectThe item starts only if the predecessor has completed successfully.
- item: TimelineItem | str¶
Predecessor item (or its identifier)
- class yamcs.client.ParameterPlot(proto=None)¶
Bases:
BandPlot the values of a numeric parameter.
Added in version 1.11.2: Compatible with Yamcs 5.11.2 onwards
- property frozen: bool¶
Fix this line to the top of the view. Frozen bands are always rendered above other bands.
- property maximum: float | None¶
Maximum value to show on Y-axis. Set to
Nonefor fitting actual data
- class yamcs.client.ParameterStateBand(proto=None)¶
Bases:
BandShow state transitions of a parameter
Added in version 1.11.2: Compatible with Yamcs 5.11.2 onwards
- property frozen: bool¶
Fix this line to the top of the view. Frozen bands are always rendered above other bands.
- mappings: List[ValueMapping | RangeMapping]¶
Map engineering values to a label and/or color. Mappings are applied in order.
- class yamcs.client.RangeMapping(start: float, end: float, label: str | None = None, color: str | None = None)¶
Bases:
objectMaps a value to a label and/or color.
- class yamcs.client.TimelineItem(*, name: str | None, start: datetime | OnSuccess | OnFailure | OnCompletion | OnStart | List[OnSuccess | OnFailure | OnCompletion | OnStart], duration: timedelta | None, id: str | None, tags: List[str] | None, auto_start: bool, extra: Dict[str, str] | None)¶
Bases:
ABC- Parameters:
name – Name of this item
start – Item start condition
duration – Item duration
id – Item identifier. If empty, the client will automatically determine a random identifier.
tags – Item tags. Used by bands to filter what is visible.
auto_start – Whether the activity starts automatically. Else it would require a separate API call to start it.
extra – Project-specific properties (ignored by Yamcs)
- auto_start: bool¶
Whether the item starts automatically. Else it would require a separate API call to start it.
- property predecessors: List[Predecessor]¶
Readonly property
Returns the predecessors for this item, derived from the item’s start conditions.
- start: datetime | OnSuccess | OnFailure | OnCompletion | OnStart | List[OnSuccess | OnFailure | OnCompletion | OnStart]¶
Item start condition
- class yamcs.client.TimelineActivity(name: str, *, start: datetime | OnSuccess | OnFailure | OnCompletion | OnStart | List[OnSuccess | OnFailure | OnCompletion | OnStart], duration: timedelta | None = None, id: str | None = None, tags: List[str] | None = None, auto_start: bool = True, activity: Activity, extra: Dict[str, str] | None = None)¶
Bases:
TimelineItemAn activity on the timeline. Activities can be scheduled at a fixed time, or they can be scheduled relative to predecessor items.
Activities can be assigned an expected duration, which helps following ongoing tasks in the Yamcs Web UI.
Activities can be anything ranging from issuing a single command, to running a lengthy script.
- Parameters:
name – Name of this activity
start – Activity start condition
duration – Expected activity duration
id – Activity identifier. If empty, the client will automatically determine a random identifier.
tags – Activity tags. Used by bands to filter what is visible.
auto_start – Whether the activity starts automatically. Else it would require a separate API call to start it.
activity – Activity definition
extra – Project-specific properties (ignored by Yamcs)
- activity¶
Activity definition
- class yamcs.client.TimelineEvent(name: str | None = None, *, start: datetime, id: str | None = None, duration: timedelta | None = None, tags: List[str] | None = None, background_color: str | None = None, border_color: str | None = None, border_width: int | None = None, corner_radius: int | None = None, margin_left: int | None = None, text_color: str | None = None, text_size: int | None = None, extra: Dict[str, str] | None = None)¶
Bases:
TimelineItemAn event on the timeline. This has a fixed start time, and an optional duration.
Events are used to show any kind of information on the timeline, and can serve as an anchor point for depending activities.
- Parameters:
name – Event title
start – Event start
duration – Event duration. If empty, the event is considered to be a milestone.
id – Item identifier. If empty, the client will automatically determine a random identifier.
tags – Item tags. Used by bands to filter what is visible.
background_color – Box background color (CSS color string)
border_color – Box border color (CSS color string)
border_width – Thickness of box border
corner_radius – Radius of box corners
margin_left – Distance between box start and label
text_color – Text color (CSS color string)
text_size – Text size
extra – Project-specific properties (ignored by Yamcs)
- class yamcs.client.TimelineTask(name: str, *, start: datetime | OnSuccess | OnFailure | OnCompletion | OnStart | List[OnSuccess | OnFailure | OnCompletion | OnStart], duration: timedelta | None = None, id: str | None = None, tags: List[str] | None = None, auto_start: bool = False, extra: Dict[str, str] | None = None)¶
Bases:
TimelineItemA task on the timeline. Tasks are actions to be performed by the user. Tasks can be scheduled at a fixed time, or they can be scheduled relative to predecessor items.
Tasks can be assigned an expected duration, which helps following ongoing tasks in the Yamcs Web UI.
- Parameters:
name – Name of this task
start – Task start condition
duration – Expected task duration
id – Task identifier. If empty, the client will automatically determine a random identifier.
tags – Task tags. Used by bands to filter what is visible.
auto_start –
Whether the task starts automatically. Else it would require a separate API call to start it.
Tasks have auto_start disabled by default, so that the user must indicate both when the task has started, and when it has completed.
extra – Project-specific properties (ignored by Yamcs)
- class yamcs.client.TimeRuler(proto=None)¶
Bases:
BandDisplays absolute time, formatted in a timezone of choice.
- property timezone: str¶
IANA timezone name.
Corresponds with the third column of the following table: https://data.iana.org/time-zones/data/zone1970.tab
In addition, the name UTC is supported.
- class yamcs.client.Trace(parameter: str, line_color: str, visible: bool = True, line_width: int = 1, fill: bool = False, fill_color: str = '#dddddd', min_max: bool = False, min_max_opacity: float = 0.17)¶
Bases:
objectA trace on a
ParameterPlot.