Variable: helper_wnba_pbp_features
consthelper_wnba_pbp_features: (game_id,pbp_txt,init) =>Record<string,any> =WNBA.pbp_features
Defined in: src/producers/espn_basketball_pbp.ts:1131
WNBA play features + timeouts (sdv-py helper_wnba_pbp_features(game_id, pbp_txt, init)):
halves before 2006, else quarters.
Parameters
game_id
unknown
The ESPN event id.
pbp_txt
any
The game dict after helper_wnba_game_data; also reads
format.regulation.periods for the era.
init
Init
The init dict helper_wnba_game_data returned.
Returns
Record<string, any>
{ ...pbp_txt, plays, timeouts }.
Example
const done = sdv.wnba.helper_wnba_pbp_features(401320565, txt, init2);
Remarks
Era-aware: format.regulation.periods (2 = halves, 4 = quarters) is authoritative,
else season year < 2006 = halves. Quarters: ladders 600 / 1200 / 1800 / 2400, OT 300,
arithmetic K + (60m + s). Halves: ladders 1200 / 2400, OT 300 from period 3, half =
period. Timeouts split at the first-half period count (1 or 2). Ids cast Int32.
See
helper_nba_pbp_features for the shared timeout, clock and per-game rules.