Timeline
sangfroid.value.Timeline()
#
How a Value changes over time.
This class can't be created directly; it should only be created by a Value. It holds no state of its own, other than the reference to the Value which created it.
Attributes:
| Name | Type | Description |
|---|---|---|
parent |
sangfroid.value.value.Value
|
the Value which created this Timeline |
Source code in sangfroid/value/value.py
353 354 355 356 | |
add(waypoints, overwrite=False)
#
Adds a Waypoint, or a set of Waypoints, to this Timeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
waypoints
|
[sangfroid.value.value.Waypoint]
|
the Waypoint (or the list of Waypoints) to add. |
required |
overwrite
|
bool
|
if |
False
|
Raises:
| Type | Description |
|---|---|
ValueError
|
if |
TypeError
|
if |
Source code in sangfroid/value/value.py
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 | |