Package nflvid :: Class Play
[frames] | no frames]

Class Play

source code

object --+
         |
        Play

Represents a single play with meta data that ties it to game footage. The footage_start corresponds to the 'ArchiveTCIN', which is when the play starts. Since there is no record of when a play stops, the duration is computed by subtracting the start time from the start time of the next play. If it's the last play recorded, then the duration is None.

The play id is the foreign key that maps to play data stored in nflgame.

Instance Methods
 
__init__(self, start, duration, playid)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
idstr(self)
Returns a string play id padded with zeroes.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, start, duration, playid)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)