<p>In <a href="https://github.com/opentechinstitute/mlab-observatory/pull/35#discussion-diff-22616757">convert_from_telescope/observatory_file_writer.py</a>:</p>
<pre style='color:#555'>>      for date, values in hourly_items:
>        values['month'] = date.month
>        values['hour'] = date.hour
>        values['year'] = date.year
> -    fields = ['month', 'hour', 'year',]
> -    fields.extend(self._metric_field_names)
> +      for field_name in sorted(values.keys()):
</pre>
<p>It's kind of silly awkwardness because I wanted the month, hour, year fields to be first so that they're the first columns. Partly because I was concerned that the Observatory code might depend on column order (which is why it's month/hour/year instead of year/month/hour) but I just checked and it doesn't, so I should make it a reasonable order.</p>

<p>The other reason is that when you visually inspect the CSV (which will need to happen), it's a lot easier to read if the dates are the leftmost columns. I think I can still use sets and do this in a pretty simple way.</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/35/files#r22616757">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBIQWAmBKheaO8_GblgsB8fTIGRFIks5nfZozgaJpZM4DPjw7.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/35/files#r22616757"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>