Writes bus data as CSV.

def write_bus_data(self, file):
        """ Writes bus data as CSV.
        """
        writer = self._get_writer(file)
        writer.writerow(BUS_ATTRS)
        for bus in self.case.buses:
            writer.writerow([getattr(bus, attr) for attr in BUS_ATTRS])