Event¶
-
class
alliancepy.event.
Event
(event_key: str, headers: dict)¶ Bases:
object
This is the main class for representation of an FTC event. Instances of this class should not be created directly; instead use your
Team
object.- season
The season in which the event occurred.
- region
The key of the region in which the event occured.
- league
The key of the league the event occured in, if any.
- name
The name of the event
- location
The location of the event, in City, State/Province, Country form.
- venue
The venue of the event.
-
match
(match_type: alliancepy.match_type.MatchType, match_number: int)¶ Get one of the matches for the event.
- Parameters
match_type (
MatchType
) – The type of the match. See Match Type for more information.match_number (int) – The number of the match.
- Returns
A
Match
object containing details about the specific match.- Return type
-
rank
(team_number: int)¶ The specified team’s rank at the end of the match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The rank as an integer.
- Return type
int
-
rank_change
(team_number: int)¶ The amount of times the team’s rank changed during the event.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The rank change as an integer.
- Return type
int
-
wins
(team_number: int)¶ The amount of times within the event that the specified team won a match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of wins as an integer.
- Return type
int
-
losses
(team_number: int)¶ The amount of times within the event that the specified team lost a match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of losses as an integer.
- Return type
int
-
ties
(team_number: int)¶ The amount of times within the event that the specified team tied in a match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of ties as an integer.
- Return type
int
-
opr
(team_number: int)¶ The specified team’s OPR for this event only. Penalties are factored in.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The OPR as a floating point number.
- Return type
float
-
np_opr
(team_number: int)¶ The specified team’s OPR for this event only. Penaltied are not factored in.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The NP_OPR as a floating point number.
- Return type
float
-
highest_qualifier_score
(team_number)¶ The specified team’s highest score in a qualifier.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The score as an integer.
- Return type
int
-
ranking_points
(team_number: int)¶ The specified team’s ranking points for this event only.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of ranking points as a floating point number.
- Return type
float
-
qualifying_points
(team_number: int)¶ The specified team’s qualifying points for this event only.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of wualifying points as an integer.
- Return type
int
-
tiebreaker_points
(team_number: int)¶ The specified team’s tiebreaker points for this event only.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of tiebreaker points as a floating point number.
- Return type
float