<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module dataplot.bike.models</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="dataplot.html"><font color="#ffffff">dataplot</font></a>.<a href="dataplot.bike.html"><font color="#ffffff">bike</font></a>.models</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/bike/models.py">/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/bike/models.py</a></font></td></tr></table>
<p><tt>Record of bike trips for data analysis.<br>
<br>
Demonstration app for dataplot.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="dataplot.R.html">dataplot.R</a><br>
<a href="datetime.html">datetime</a><br>
</td><td width="25%" valign=top><a href="dataplot.plotmodels.html">dataplot.plotmodels</a><br>
<a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="pdb.html">pdb</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="dataplot.plotmodels.html#Model">dataplot.plotmodels.Model</a>(<a href="django.db.models.base.html#Model">django.db.models.base.Model</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.bike.models.html#Bike">Bike</a>
</font></dt><dt><font face="helvetica, arial"><a href="dataplot.bike.models.html#Location">Location</a>
</font></dt><dt><font face="helvetica, arial"><a href="dataplot.bike.models.html#Ride">Ride</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dataplot.bike.models.html#RideManager">RideManager</a>
</font></dt></dl>
</dd>
</dl>
<strong>Bike</strong> = <class 'dataplot.bike.models.Bike'> <strong>Location</strong> = <class 'dataplot.bike.models.Location'> <strong>Ride</strong> = <class 'dataplot.bike.models.Ride'> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="RideManager">class <strong>RideManager</strong></a>(<a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Used for making global ride plots and importing data.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dataplot.bike.models.html#RideManager">RideManager</a></dd>
<dd><a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RideManager-CorrScatter_args"><strong>CorrScatter_args</strong></a> = _curried(*moreargs, **morekwargs)</dt></dl>
<dl><dt><a name="RideManager-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="RideManager-create_from_file"><strong>create_from_file</strong></a>(self, filename)</dt><dd><tt>Create new bike rides based on records in a text file.</tt></dd></dl>
<dl><dt><a name="RideManager-create_from_file_default"><strong>create_from_file_default</strong></a>(self)</dt><dd><tt>Create new bike rides based on default dataset.</tt></dd></dl>
<dl><dt><a name="RideManager-from_to"><strong>from_to</strong></a>(self, org, dest)</dt><dd><tt>Shortcut for searching from and to by short_name.</tt></dd></dl>
<dl><dt><a name="RideManager-get_corr_args"><strong>get_corr_args</strong></a>(self)</dt><dd><tt>Arguments for making the daily correlation scatterplot.</tt></dd></dl>
<dl><dt><a name="RideManager-get_date_dict"><strong>get_date_dict</strong></a>(self)</dt><dd><tt>Sort rides based on date in a dictionary.</tt></dd></dl>
<dl><dt><a name="RideManager-get_odoplot_args"><strong>get_odoplot_args</strong></a>(self)</dt><dd><tt>Get arguments for the time series plot.<br>
<br>
If no data present, create some from the default dataset.</tt></dd></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__slotnames__</strong> = []</dl>
<hr>
Methods inherited from <a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>:<br>
<dl><dt><a name="RideManager-all"><strong>all</strong></a>(self)</dt></dl>
<dl><dt><a name="RideManager-complex_filter"><strong>complex_filter</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-contribute_to_class"><strong>contribute_to_class</strong></a>(self, model, name)</dt></dl>
<dl><dt><a name="RideManager-count"><strong>count</strong></a>(self)</dt></dl>
<dl><dt><a name="RideManager-create"><strong>create</strong></a>(self, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-dates"><strong>dates</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-distinct"><strong>distinct</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-exclude"><strong>exclude</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-extra"><strong>extra</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-filter"><strong>filter</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-get"><strong>get</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-get_empty_query_set"><strong>get_empty_query_set</strong></a>(self)</dt></dl>
<dl><dt><a name="RideManager-get_or_create"><strong>get_or_create</strong></a>(self, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-get_query_set"><strong>get_query_set</strong></a>(self)</dt><dd><tt>Returns a new QuerySet object. Subclasses can override this method<br>
to easily customize the behavior of the <a href="django.db.models.manager.html#Manager">Manager</a>.</tt></dd></dl>
<dl><dt><a name="RideManager-in_bulk"><strong>in_bulk</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-iterator"><strong>iterator</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-latest"><strong>latest</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-none"><strong>none</strong></a>(self)</dt></dl>
<dl><dt><a name="RideManager-order_by"><strong>order_by</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-select_related"><strong>select_related</strong></a>(self, *args, **kwargs)</dt></dl>
<dl><dt><a name="RideManager-values"><strong>values</strong></a>(self, *args, **kwargs)</dt></dl>
<hr>
Data and other attributes inherited from <a href="django.db.models.manager.html#Manager">django.db.models.manager.Manager</a>:<br>
<dl><dt><strong>__dict__</strong> = <dictproxy object><dd><tt>dictionary for instance variables (if defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'Manager' objects><dd><tt>list of weak references to the object (if defined)</tt></dl>
<dl><dt><strong>creation_counter</strong> = 50</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-tup_to_minutes"><strong>tup_to_minutes</strong></a>(h, m, s)</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>PAIRED_RIDES_SQL</strong> = '<font color="#c040c0">\n</font>select x.date,x.hours,x.minutes,x.seconds,y.hou...gin_id=%s and y.destination_id=%s order by date;<font color="#c040c0">\n</font>'<br>
<strong>connection</strong> = <django.db.backends.postgresql.base.DatabaseWrapper object><br>
<strong>matplotlib</strong> = None</td></tr></table>
</body></html>