Menu

[r124]: / trunk / docs / htdocs / pydoc / dataplot.bike.models.html  Maximize  Restore  History

Download this file

159 lines (119 with data), 9.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<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&nbsp;of&nbsp;bike&nbsp;trips&nbsp;for&nbsp;data&nbsp;analysis.<br>
&nbsp;<br>
Demonstration&nbsp;app&nbsp;for&nbsp;dataplot.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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> = &lt;class 'dataplot.bike.models.Bike'&gt; <strong>Location</strong> = &lt;class 'dataplot.bike.models.Location'&gt; <strong>Ride</strong> = &lt;class 'dataplot.bike.models.Ride'&gt; <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Used&nbsp;for&nbsp;making&nbsp;global&nbsp;ride&nbsp;plots&nbsp;and&nbsp;importing&nbsp;data.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</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&nbsp;new&nbsp;bike&nbsp;rides&nbsp;based&nbsp;on&nbsp;records&nbsp;in&nbsp;a&nbsp;text&nbsp;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&nbsp;new&nbsp;bike&nbsp;rides&nbsp;based&nbsp;on&nbsp;default&nbsp;dataset.</tt></dd></dl>
<dl><dt><a name="RideManager-from_to"><strong>from_to</strong></a>(self, org, dest)</dt><dd><tt>Shortcut&nbsp;for&nbsp;searching&nbsp;from&nbsp;and&nbsp;to&nbsp;by&nbsp;short_name.</tt></dd></dl>
<dl><dt><a name="RideManager-get_corr_args"><strong>get_corr_args</strong></a>(self)</dt><dd><tt>Arguments&nbsp;for&nbsp;making&nbsp;the&nbsp;daily&nbsp;correlation&nbsp;scatterplot.</tt></dd></dl>
<dl><dt><a name="RideManager-get_date_dict"><strong>get_date_dict</strong></a>(self)</dt><dd><tt>Sort&nbsp;rides&nbsp;based&nbsp;on&nbsp;date&nbsp;in&nbsp;a&nbsp;dictionary.</tt></dd></dl>
<dl><dt><a name="RideManager-get_odoplot_args"><strong>get_odoplot_args</strong></a>(self)</dt><dd><tt>Get&nbsp;arguments&nbsp;for&nbsp;the&nbsp;time&nbsp;series&nbsp;plot.<br>
&nbsp;<br>
If&nbsp;no&nbsp;data&nbsp;present,&nbsp;create&nbsp;some&nbsp;from&nbsp;the&nbsp;default&nbsp;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&nbsp;a&nbsp;new&nbsp;QuerySet&nbsp;object.&nbsp;&nbsp;Subclasses&nbsp;can&nbsp;override&nbsp;this&nbsp;method<br>
to&nbsp;easily&nbsp;customize&nbsp;the&nbsp;behavior&nbsp;of&nbsp;the&nbsp;<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> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'Manager' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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> = &lt;django.db.backends.postgresql.base.DatabaseWrapper object&gt;<br>
<strong>matplotlib</strong> = None</td></tr></table>
</body></html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.