Variable: helper_mbb_game_data
consthelper_mbb_game_data: (pbp_txt,init) => [Record<string,any>,Init] =MBB.game_data
Defined in: src/producers/espn_basketball_pbp.ts:1168
MBB home / away identification (sdv-py helper_mbb_game_data(pbp_txt, init)):
[pbp_txt, init]. homeTeamSpread follows homeFavorite (a one-element array in init
stays one, as numpy).
Parameters
pbp_txt
any
The trimmed game dict; reads header.competitions[0] and header.season.
init
Init
The pickcenter dict (all four keys required).
Returns
[Record<string, any>, Init]
[pbp_txt, init] with the team keys added (see the NBA helper).
Example
const [txt, init2] = sdv.mbb.helper_mbb_game_data(summary, init);
See
helper_nba_game_data for the keys read / written and the errors.