Package dataplot :: Package soccer :: Module models :: Class Player
[show private | hide private]
[frames | no frames]

Type Player

object --+        
         |        
     Model --+    
             |    
         Model --+
                 |
                Player


Player(id, name, goals_per_game, team_goals_per_game, goals_allowed_per_game, differential, games, wins, win_percent)
Method Summary
  __str__(self)
  cache(self)
  get_stat(self, at)
  get_stats(self)
  inverse_goals_allowed(self)
  save(self)
Save method which allows for maximum configurability.
  save_plots(self)
  scores_by_date(self)
  scores_ordered(self)
    Inherited from Model
  __init__(self, *args, **kwargs)
  make_manager_plots(cls, force)
Try to remake plots related to this model's manager. (Class method)
  make_model_plots(self, force)
Try to remake plots related to this model.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
list DATAPLOTS = [(<class 'dataplot.R.TimeSeries'>, {'qs': 's...
list MANAGER_DATAPLOTS = [(<class 'dataplot.R.SquareScatter'>...
PlayerManager objects = <dataplot.soccer.models.PlayerManager object a...
ForeignRelatedObjectsDescriptor score_set = <django.db.models.fields.related.ForeignRela...
str URLID = 'name'

Instance Method Details

save(self)

Save method which allows for maximum configurability.

On a model with no custom save method, we will call django's save first, then try to make plots for this object.

On a model with a custom save method, you should call make_plots and Model.save yourself, depending on when it is appropriate in terms of your data processing.
Overrides:
dataplot.plotmodels.Model.save (inherited documentation)

Class Variable Details

DATAPLOTS

Type:
list
Value:
[(<class 'dataplot.R.TimeSeries'>,
  {'get_plot_args': {'y': 'goals', 'd': 'game_seconds'},
   'qs': 'scores_ordered'}),
 (<class 'dataplot.R.TimeSeries'>,
  {'attribute': 'win_percent_plot',
   'get_plot_args': {'d': 'game_seconds',
                     'main': 'Win percent change over time',
                     'xlab': 'Game date',
...                                                                    

MANAGER_DATAPLOTS

Type:
list
Value:
[(<class 'dataplot.R.SquareScatter'>,
  {'attribute': 'offense_defense',
   'get_plot_args': {'ann': 'name',
                     'main': 'Defense v. offense',
                     'x': 'team_goals_per_game',
                     'y': 'inverse_goals_allowed'}}),
 <class 'dataplot.R.SquareScatter'>,
 (<class 'dataplot.R.SquareScatter'>, {'attribute': 'wins_diff'}),
...                                                                    

objects

Type:
PlayerManager
Value:
<dataplot.soccer.models.PlayerManager object at 0xb7c92fcc>            

score_set

Type:
ForeignRelatedObjectsDescriptor
Value:
<django.db.models.fields.related.ForeignRelatedObjectsDescriptor objec\
t at 0xb7ca17ac>                                                       

URLID

Type:
str
Value:
'name'                                                                 

Generated by Epydoc 2.1 on Tue Apr 29 23:35:17 2008 http://epydoc.sf.net