AttackingDirection
kloppy.domain.AttackingDirection
Bases: Enum
The direction of play for the home team.
ATTRIBUTE | DESCRIPTION |
---|---|
LTR |
Home team is playing from left to right
TYPE:
|
RTL |
Home team is playing from right to left
TYPE:
|
NOT_SET |
not set yet
TYPE:
|
from_orientation
staticmethod
Determines the attacking direction for a specific data record.
PARAMETER | DESCRIPTION |
---|---|
orientation
|
The orientation of the dataset.
TYPE:
|
period
|
The period of the data record.
TYPE:
|
ball_owning_team
|
The team that is in possession of the ball.
TYPE:
|
action_executing_team
|
The team that executes the action.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
OrientationError
|
If the attacking direction cannot be determined from the given data. |
RETURNS | DESCRIPTION |
---|---|
'AttackingDirection'
|
The attacking direction for the given data record. |
Source code in kloppy/domain/models/common.py
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 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
|