<p>In <a href="https://github.com/opentechinstitute/mlab-observatory/pull/29#discussion-diff-21570205">convert_from_telescope/sample_checking.py</a>:</p>
<pre style='color:#555'>> +import aggregate
> +import telescope_data_parser
> +
> +
> +def setup_logger():
> +  logger = logging.getLogger('prepare-for-server')
> +  console_handler = logging.StreamHandler()
> +  logger.addHandler(console_handler)
> +  logger.setLevel(logging.INFO)
> +
> +
> +class SampleCounter(object):
> +  """Tracks the number of samples per day in a collection of datasets."""
> +
> +  def __init__(self):
> +    self.sample_counts = {}
</pre>
<p>self.sample_counts = defaultdict(lambda: {})</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/mlab-observatory/pull/29/files#r21570205">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBDXlb8uOODuRyVIpZP9gmcY8vmlEks5nV3TggaJpZM4DGR0-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/opentechinstitute/mlab-observatory/pull/29/files#r21570205"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>